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: [PATCH] Fix 67064 - Register asm variable broken


On 09/22/2015 11:49 AM, Jason Merrill wrote:
On 09/16/2015 10:24 AM, Andres Tiraboschi wrote:
Hi, this patch fix the following bug:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67064 for gcc 5.2

It passes all the gcc tests except for this:
FAIL: g++.dg/cpp1y/auto-fn15.C  -std=gnu++14 (test for excess errors)

Yep.  The test is verifying that decltype(auto) functions handle
parentheses properly, and the patch disables the code for that handling.

but this also happens without the patch.

The test passes for me without this patch.

A simple fix would be to just disable the reference games when we're looking at a hard register variable. That would break decltype(auto) for hard register variables, but since they are a GNU extension that isn't a big deal.

Jason


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