------- Comment #5 from photon at seznam dot cz  2007-10-15 07:29 -------
(In reply to comment #4)
> 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.
> 

The desired outcome is clear in this case but the compiler does not recognize
the template arguments. Before encountering '=' the parser honors the template
argument separator with a higher priority than the function argument separator,
afterwards it does not. That does not make sense and certainly either the
standard or the compiler should be fixed.


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

Provided the standard is ambiguous, fixing this problem would not introduce a
language extension.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33754

Reply via email to