[Bug c++/41725] g++ accepts compounded unnamed type in template (violates 14.3.1-2)
td-gnubugs at th-dorner dot de
gcc-bugzilla@gcc.gnu.org
Fri Oct 16 08:59:00 GMT 2009
------- Comment #1 from td-gnubugs at th-dorner dot de 2009-10-16 08:59 -------
Created an attachment (id=18806)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18806&action=view)
(almost) minimal example
A
g++ -pedantic -ansi -Wall -Wextra -o ArrayWithInnerStructure3
ArrayWithInnerStructure3.cpp ; ./ArrayWithInnerStructure3 ; echo $?
just prints "8" and no compilation error or warning.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41725
More information about the Gcc-bugs
mailing list