This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/24326] bad diagnostic



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]