ummary: No typedef required when type use in a function
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: florent dot gallet
--
What|Removed |Added
Summary|No typedef required when|No typename required when
|type use in a function |type use in a function
http://gcc.g
--- Additional Comments From florent dot gallet at orange dot fr
2005-05-27 14:42 ---
It's that, that shouldn't work :
void f(A::B);// illformed: typename required before A::B
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21783
--- Additional Comments From florent dot gallet at orange dot fr
2005-05-27 15:01 ---
I only have the DRAFT, so I don't know if it's really a bug.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21783
--- Additional Comments From florent dot gallet at orange dot fr
2005-05-27 15:23 ---
Tested with VC++ 2003:
SansNom1.cpp(7) : warning C4346: 'A::B' : dependent name is not a type
prefix with 'typename' to indicate a type
SansNom1.cpp(9) : see referen
--- Additional Comments From florent dot gallet at orange dot fr
2005-05-27 15:25 ---
(sorry, the line number are wrong, begin at 5)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21783