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


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