C++ PATCH for c++/60361 (decl/expr ambiguity)

Jason Merrill jason@redhat.com
Wed Mar 5 17:35:00 GMT 2014


The problem in this testcase was that we were initially tentatively 
parsing int(A) as a parameter declaration, then complaining about using 
that parameter as a template-argument.  We should treat it as a parse 
error rather than a semantic error until we know how we really want to 
parse  things.

The second patch fixes the diagnostic location of the pedwarn about 
using list-initialization in C++98 mode.

Tested x86_64-pc-linux-gnu, applying to trunk.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 60361.patch
Type: text/x-patch
Size: 3561 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20140305/c97a48af/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: initlist-warn.patch
Type: text/x-patch
Size: 4146 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20140305/c97a48af/attachment-0001.bin>


More information about the Gcc-patches mailing list