[Bug c++/78693] [6 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
Tue Jan 17 20:32:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78693
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Tue Jan 17 20:31:40 2017
New Revision: 244551
URL: https://gcc.gnu.org/viewcvs?rev=244551&root=gcc&view=rev
Log:
Backported from mainline
2017-01-04 Jakub Jelinek <jakub@redhat.com>
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:
branches/gcc-6-branch/gcc/testsuite/g++.dg/cpp0x/pr78693.C
Modified:
branches/gcc-6-branch/gcc/cp/ChangeLog
branches/gcc-6-branch/gcc/cp/parser.c
branches/gcc-6-branch/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list