This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/33754] Default argument of type list < pair < A, B > > compiles only when typedef is used
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Oct 2007 08:54:38 -0000
- Subject: [Bug c++/33754] Default argument of type list < pair < A, B > > compiles only when typedef is used
- References: <bug-33754-15110@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from pinskia at gcc dot gnu dot org 2007-10-13 08:54 -------
(In reply to comment #2)
> I vote for this to be fixed in GCC, especially since the standard is unclear.
> The compiler has the knowledge 'pair' is a template class. MS C++ accepts the
> syntax and does not violate any standards by doing so.
Actually the standard says this is invalid, just it was not the intention of
committee that is to be invalid which is why there is defect report against the
C++ standard.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33754