c++: Function declared with typedef with eh-specification.
authorJason Merrill <jason@redhat.com>
Mon, 27 Jan 2020 22:55:14 +0000 (17:55 -0500)
committerJason Merrill <jason@redhat.com>
Tue, 28 Jan 2020 14:50:32 +0000 (09:50 -0500)
commit0968f7da26221bfc9203cd557c8636c0a0f24018
treeaff1ced72ba47d0b7b50320ba2b3fb13e27ac91a
parenta5ed4958a2c1b563e933b25ca3b481761cc40b07
c++: Function declared with typedef with eh-specification.

We just need to handle the exception specification like other properties of
a function typedef.

PR c++/90731
* decl.c (grokdeclarator): Propagate eh spec from typedef.
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/g++.dg/cpp1z/noexcept-type22.C [new file with mode: 0644]