[Bug c++/24326] bad diagnostic

2005-10-12 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2005-10-12 11:37 --- What is wrong with this? "bar()::X" or something else? How would you improve it? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24326

[Bug c++/24326] bad diagnostic

2005-10-12 Thread igodard at pacbell dot net
--- 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 struct foo' foo.cc:2: error: invalid type in declara

[Bug c++/24326] bad diagnostic

2005-11-23 Thread gdr at gcc dot gnu dot org
--- Comment #3 from gdr at gcc dot gnu dot org 2005-11-24 02:42 --- (In reply to comment #2) > IMO, saying "`bar()::X' uses local type `bar()::X'" makes no sense. Agreed. Working a patch. -- gdr at gcc dot gnu dot org changed: What|Removed |Adde

[Bug c++/24326] bad diagnostic

2005-11-23 Thread gdr at gcc dot gnu dot org
--- Comment #4 from gdr at gcc dot gnu dot org 2005-11-24 03:39 --- Fixed on mainline -- gdr at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGN

[Bug c++/24326] bad diagnostic

2005-12-12 Thread pinskia at gcc dot gnu dot org
-- pinskia at gcc dot gnu dot org changed: What|Removed |Added Target Milestone|--- |4.2.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24326