/cp
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 2 Oct 2013 18:25:55 +0000 (18:25 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 2 Oct 2013 18:25:55 +0000 (18:25 +0000)
commitb9c6afcdd29d83bf3477cb39a28c3066c82c9161
tree578335d252c2aa921f7bd37cc8dc8c4fa46f7fd7
parentba4d2b2f28479db60842a014a93613da093fd150
/cp
2013-10-02  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/58535
* parser.c (cp_parser_function_specifier_opt): Upon error about
virtual templates don't set ds_virtual.
(finish_fully_implicit_template): Reject virtual implicit templates.

/testsuite
2013-10-02  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/58535
* g++.dg/parse/crash65.C: New.
* g++.dg/cpp1y/pr58535.C: Likewise.

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