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: "photon at seznam dot cz" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Oct 2007 08:24:13 -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 #2 from photon at seznam dot cz 2007-10-13 08:24 -------
(In reply to comment #1)
>
> *** This bug has been marked as a duplicate of 57 ***
>
>> I should note this bug is suspended. This is because the standard is unclear at what is the correct behavior. See DR 325 for all the details.
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.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33754