https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120318
Bug ID: 120318
Summary: Module deduced return type error.
Product: gcc
Version: 15.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: kongmingd234 at proton dot me
Target Milestone: ---
Created attachment 61452
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61452&action=edit
This code does not compile.
The code given in the file does not compile, however, using include instead
will cause this code to compile perfectly fine.
Weirder is that having the code inside a lambda function instead of a normal
function causes the error to go away.
This could be an issue with libstdc++, but seems unlikely to me. In the off
chance that it was I apologize for tagging it as c++.