decl.c (grokfndecl): Handle separately <inline> and <constexpr> error messages.
authorPaolo Carlini <paolo.carlini@oracle.com>
Tue, 26 Mar 2013 10:23:59 +0000 (10:23 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Tue, 26 Mar 2013 10:23:59 +0000 (10:23 +0000)
commit5cf2a084134a8a7d376015981e55963f344d0f19
tree5d6036a00149f5e9d47fe9bae08f27215a930686
parent30b0317cb922423802443127f526c7bfd4bbb61f
decl.c (grokfndecl): Handle separately <inline> and <constexpr> error messages.

/cp
2013-03-26  Paolo Carlini  <paolo.carlini@oracle.com>

* decl.c (grokfndecl): Handle separately <inline> and <constexpr>
error messages.

* decl.c (grokdeclarator): Declare typedef_p and use it everywhere.

/testsuite
2013-03-26  Paolo Carlini  <paolo.carlini@oracle.com>

* g++.dg/cpp0x/constexpr-friend-2.C: New.
* g++.dg/cpp0x/constexpr-main.C: Likewise.

From-SVN: r197097
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/constexpr-friend-2.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/constexpr-main.C [new file with mode: 0644]