https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81764
--- Comment #3 from Martin Sebor ---
This is another one of those cases where implementations diverge:
Clang and ICC silently accept the program in comment #0 and give an error for
the one in comment #1.
GCC issues -Wattributes for both.
MSVC
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81764
Jason Merrill changed:
What|Removed |Added
Status|NEW |RESOLVED
CC|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81764
Richard Biener changed:
What|Removed |Added
Priority|P3 |P2
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81764
Richard Biener changed:
What|Removed |Added
Target Milestone|--- |6.5
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81764
Martin Sebor changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Known to work|