[Bug c++/24326] bad diagnostic
igodard at pacbell dot net
gcc-bugzilla@gcc.gnu.org
Wed Oct 12 19:23:00 GMT 2005
------- Comment #2 from igodard at pacbell dot net 2005-10-12 19:23 -------
Well, how about:
foo.cc: In function `void bar()':
foo.cc:2: error: template argument `T' uses local type `bar()::X'
foo.cc:2: error: trying to instantiate `template<class T> struct foo'
foo.cc:2: error: invalid type in declaration before ';' token
IMO, saying "`bar()::X' uses local type `bar()::X'" makes no sense.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24326
More information about the Gcc-bugs
mailing list