This is the mail archive of the gcc-patches@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]

Re: [C++ Patch] PR 80186 ("ICE on C++ code with invalid constructor...")


> On Mon, May 8, 2017 at 7:25 AM, Paolo Carlini <paolo.carlini@oracle.com> wrote:
>> in order to avoid this error recovery issue I think we want to check the
>> return value of grok_ctor_properties, as we do in decl.c, for its only other
>> use. Tested x86_64-linux.

The new testcase fails with -std=c++1z because the rvalue directly
initializes the parameter, so we don't get the second error.  Fixing
thus.

Jason

Attachment: 80186-test.diff
Description: Text document


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