Re: [PATCH] Fix 67064 - Register asm variable broken

2015-10-20 Thread Jason Merrill
On 09/22/2015 06:03 AM, Jason Merrill wrote: 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. Like so. Tested

Re: [PATCH] Fix 67064 - Register asm variable broken

2015-09-22 Thread Jason Merrill
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

Re: [PATCH] Fix 67064 - Register asm variable broken

2015-09-22 Thread Jason Merrill
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

[PATCH] Fix 67064 - Register asm variable broken

2015-09-16 Thread Andres Tiraboschi
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) but this also happens without the patch. This patch was implemented for gcc 5.2