re PR c++/48945 ([C++0x] static constexpr member function cannot be defined out-of...
authorJason Merrill <jason@redhat.com>
Sat, 21 May 2011 22:01:45 +0000 (18:01 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Sat, 21 May 2011 22:01:45 +0000 (18:01 -0400)
commitfa4a1e468dd4fc44b1d805142d60ff1c3330276e
tree57ee63c2245a76365777794f04ac71029e7c2bb2
parentb6413764c0dd056f000c6541913e95af9bddbb3e
re PR c++/48945 ([C++0x] static constexpr member function cannot be defined out-of class)

PR c++/48945
* decl.c (grokdeclarator): Don't add set const function-cv-qual
for constexpr fns to memfn_quals, just add it to the type.
(revert_static_member_fn): Don't complain about quals.
(check_static_quals): New.
(grokfndecl): Call it.
(start_preparsed_function): Don't call revert_static_member_fn.

From-SVN: r174007
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/constexpr-static7.C