[Bug c++/78693] [6/7 Regression] Bogus 'inconsistent deduction for ‘auto’' error when having a dependent initializer and a nondependent one in the same declaration
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jan 4 21:31:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78693
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Jan 4 21:30:35 2017
New Revision: 244074
URL: https://gcc.gnu.org/viewcvs?rev=244074&root=gcc&view=rev
Log:
PR c++/78693
* parser.c (cp_parser_simple_declaration): Only complain about
inconsistent auto deduction if auto_result doesn't use auto.
* g++.dg/cpp0x/pr78693.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/pr78693.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/parser.c
trunk/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list