[Bug c++/70667] SFINAE error disambiguating using alignas

2024-04-04 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70667 --- Comment #4 from Andrew Pinski --- If we had: ``` int i = f<3>(nullptr); ``` clang, edg and MSVC also rejects it for the same reason as GCC.

[Bug c++/70667] SFINAE error disambiguating using alignas

2024-04-04 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70667 --- Comment #3 from Andrew Pinski --- So if we have (note the extra f which has no arguments): ``` template struct A { alignas (N) int a; }; template struct B { char c; }; template int f (int (*)[sizeof (A)]) { return 0; } template int f

[Bug c++/70667] SFINAE error disambiguating using alignas

2016-04-18 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70667 --- Comment #2 from Martin Sebor --- I'm not sure if that changes the validity of the test case (the invalid alignment on the member makes the whole class invalid) but the error is the same with A defined with the alignment specifier rather than

[Bug c++/70667] SFINAE error disambiguating using alignas

2016-04-18 Thread rs2740 at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70667 TC changed: What|Removed |Added CC||rs2740 at gmail dot com --- Comment #1 from TC