Fix PR c++/69139 (deduction failure with trailing return type)
commit9cc6714f8a4c10eb27a1efb940e33d13fc345bc1
authorppalka <ppalka@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 8 Feb 2016 23:06:21 +0000 (8 23:06 +0000)
committerppalka <ppalka@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 8 Feb 2016 23:06:21 +0000 (8 23:06 +0000)
tree98b18911a7e3fb68c913c06d673f62253a06e20e
parent83d5062b8f1a9c373f783c0929b52069e927000b
Fix PR c++/69139 (deduction failure with trailing return type)

gcc/cp/ChangeLog:

PR c++/69139
* parser.c (cp_parser_simple_type_specifier): Make the check
for disambiguating between an 'auto' placeholder and an implicit
template parameter more robust.

gcc/testsuite/ChangeLog:

PR c++/69139
* g++.dg/cpp0x/trailing12.C: New test.
* g++.dg/cpp0x/trailing13.C: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@233231 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/parser.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/trailing12.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/trailing13.C [new file with mode: 0644]