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++/33754] Default argument of type list < pair < A, B > > compiles only when typedef is used



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


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