decl.c (grokdeclarator): Check here for typedef a function definition or a member...
authorPaolo Carlini <paolo@gcc.gnu.org>
Wed, 14 Aug 2019 08:50:55 +0000 (08:50 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Wed, 14 Aug 2019 08:50:55 +0000 (08:50 +0000)
commit777e426772f80cd101b49abb842ea621e89c433e
treeec7e65088f6c4d4ca22e3c5b11934e676ea3a01e
parente272312308192b56937d3e3e1cb62e68fe2de833
decl.c (grokdeclarator): Check here for typedef a function definition or a member function definition.

/cp
2019-08-14  Paolo Carlini  <paolo.carlini@oracle.com>

* decl.c (grokdeclarator): Check here for typedef a function
definition or a member function definition.
(start_function): Adjust.
(grokmethod): Likewise.

/testsuite
2019-08-14  Paolo Carlini  <paolo.carlini@oracle.com>

* g++.dg/parse/typedef9.C: Test locations too.

From-SVN: r274431
gcc/cp/decl.c
gcc/testsuite/g++.dg/parse/typedef9.C