Line
Link Here
|
0 |
-- a/gcc/cp/decl.c |
0 |
++ b/gcc/cp/decl.c |
Lines 12029-12042
grokdeclarator (const cp_declarator *declarator,
Link Here
|
12029 |
|
12029 |
|
12030 |
/* Handle a late-specified return type. */ |
12030 |
/* Handle a late-specified return type. */ |
12031 |
tree late_return_type = declarator->u.function.late_return_type; |
12031 |
tree late_return_type = declarator->u.function.late_return_type; |
12032 |
if (funcdecl_p |
12032 |
if (true) |
12033 |
/* This is the case e.g. for |
|
|
12034 |
using T = auto () -> int. */ |
12035 |
|| inner_declarator == NULL) |
12036 |
{ |
12033 |
{ |
12037 |
if (tree auto_node = type_uses_auto (type)) |
12034 |
if (tree auto_node = type_uses_auto (type)) |
12038 |
{ |
12035 |
{ |
12039 |
if (!late_return_type) |
12036 |
if (!late_return_type && funcdecl_p) |
12040 |
{ |
12037 |
{ |
12041 |
if (current_class_type |
12038 |
if (current_class_type |
12042 |
&& LAMBDA_TYPE_P (current_class_type)) |
12039 |
&& LAMBDA_TYPE_P (current_class_type)) |