re PR c++/78693 (Bogus 'inconsistent deduction for ‘auto’' error when having a depend...
authorJakub Jelinek <jakub@redhat.com>
Wed, 4 Jan 2017 21:30:35 +0000 (22:30 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 4 Jan 2017 21:30:35 +0000 (22:30 +0100)
commit26c43e27441b88b20a463686ffe0b9b5ebbfbcf0
tree3e4534773f68a3b8acb7baadbc4a5f321c830e48
parent742b18041a2624da73d57abfaa44b04fbe55fe37
re PR c++/78693 (Bogus 'inconsistent deduction for ‘auto’' error when having a dependent initializer and a nondependent one in the same declaration)

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.

From-SVN: r244074
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/pr78693.C [new file with mode: 0644]