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: "nathan at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Oct 2007 16:26:43 -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 #4 from nathan at gcc dot gnu dot org 2007-10-14 16:26 -------
DR 325 describes the ambiguities in the standard. There are a number of
possible solutions to accepting this syntax, with different implementation
complexities, and it is not clear what the desired outcome is.
As there is a simple workaround -- adding parentheses -- which is unambiguously
correct, I do not see a need to speculatively implement a language extension
here.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33754