https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120845
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|C++ multiline module |[16 Regression] C++ |declaration is not accepted |multiline module |by g++ |declaration is not accepted | |by g++ Status|UNCONFIRMED |NEW Last reconfirmed| |2025-06-27 Blocks| |103524 Keywords| |ice-on-valid-code, | |rejects-valid Ever confirmed|0 |1 --- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- It's rejects-valid for GCC 14 and 15: mod.cc:2:37: error: expected end of line at end of input 2 | [[this_is_a_useless_attribute]]; | ^ mod.cc:2: confused by earlier errors, bailing out And ice-on-valid-code for trunk, since r15-4847: ./mod.cc:2:36: internal compiler error: in declare_module, at cp/module.cc:21566 2 | [[this_is_a_useless_attribute]]; | ^ 0x23cfbe1 internal_error(char const*, ...) /home/jwakely/src/gcc/gcc/gcc/diagnostic-global-context.cc:517 0x71976d fancy_abort(char const*, int, char const*) /home/jwakely/src/gcc/gcc/gcc/diagnostic.cc:1810 0x479043 declare_module(module_state*, unsigned long, bool, tree_node*, cpp_reader*) /home/jwakely/src/gcc/gcc/gcc/cp/module.cc:21566 0x905e7e cp_parser_module_declaration /home/jwakely/src/gcc/gcc/gcc/cp/parser.cc:15745 0x9326db cp_parser_translation_unit /home/jwakely/src/gcc/gcc/gcc/cp/parser.cc:5461 0x9326db c_parse_file() /home/jwakely/src/gcc/gcc/gcc/cp/parser.cc:54298 0xa94981 c_common_parse_file() /home/jwakely/src/gcc/gcc/gcc/c-family/c-opts.cc:1385 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions. Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103524 [Bug 103524] [meta-bug] modules issue