[Bug c++/124459] Ignoring a pragma directive inside a module
d7d1cd at mail dot ru
gcc-bugzilla@gcc.gnu.org
Thu Mar 12 04:59:35 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124459
--- Comment #1 from d7d1cd <d7d1cd at mail dot ru> ---
Sorry, I didn't attach the compiler output with the warning. Here it is:
$ g++ -std=c++26 -fmodules -c main.cc -Wall
In module M, imported at main.cc:1:
module.ixx: In instantiation of ‘void foo@M(T) [with T = int]’:
main.cc:3:8: required from here
3 | foo(42);
| ~~~^~~~
module.ixx:15:16: warning: suggest parentheses around comparison in operand
of ‘!=’ [-Wparentheses]
15 | if (Type() <= a); \
| ^
module.ixx:22:5: note: in expansion of macro ‘FOO’
22 | FOO(t != 0);
| ^~~
More information about the Gcc-bugs
mailing list