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