On Wed, Jun 8, 2016 at 4:21 AM, Paolo Carlini wrote:
> .. shall we fix this in gcc-6-branch too or not? It's just an ICE on invalid
> but we don't emit any diagnostic before the crash.
Sure, it should be safe enough.
Jason
.. shall we fix this in gcc-6-branch too or not? It's just an ICE on
invalid but we don't emit any diagnostic before the crash.
Thanks,
Paolo.
Hi,
On 20/05/2016 17:24, Jason Merrill wrote:
On 05/20/2016 07:17 AM, Paolo Carlini wrote:
The below passes testing. There are a few minor changes wrt your
suggestions (I think we want & as hint;
I disagree; if what the user wanted was a function pointer, there's no
reason to use
On 05/20/2016 07:17 AM, Paolo Carlini wrote:
The below passes testing. There are a few minor changes wrt your
suggestions (I think we want & as hint;
I disagree; if what the user wanted was a function pointer, there's no
reason to use decltype(auto) over plain auto. Much more likely that
Hi,
On 19/05/2016 15:58, Jason Merrill wrote:
On 05/18/2016 07:13 PM, Paolo Carlini wrote:
+ error ("cannot declare variable %q+D with function type", decl);
I think the error message would be more helpful if it mentioned
decltype(auto), maybe
"initializer for %
On 05/18/2016 07:13 PM, Paolo Carlini wrote:
+ error ("cannot declare variable %q+D with function type", decl);
I think the error message would be more helpful if it mentioned
decltype(auto), maybe
"initializer for % has function type, did you forget
the
Hi,
On 18/05/2016 23:13, Jason Merrill wrote:
Shouldn't we have complained about declaring a variable with function
type before we get here?
Ah, interesting, I think all the other compilers I have at hand don't
even try to catch the issue so early.
In any case, something as simple as the
On 05/18/2016 11:48 AM, Paolo Carlini wrote:
Hi,
this issue should be easy to fix. Broken code like:
void foo ()
{
decltype (auto) a = foo;
}
triggers the gcc_assert in digest_init_r:
/* Come here only for aggregates: records, arrays, unions, complex
numbers
and vectors. */
Hi,
this issue should be easy to fix. Broken code like:
void foo ()
{
decltype (auto) a = foo;
}
triggers the gcc_assert in digest_init_r:
/* Come here only for aggregates: records, arrays, unions, complex
numbers
and vectors. */
gcc_assert (TREE_CODE (type) == ARRAY_TYPE