[Bug c++/48945] [C++0x] static constexpr member function cannot be defined out-of class

jason at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sat May 21 22:23:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48945

--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> 2011-05-21 22:01:48 UTC ---
Author: jason
Date: Sat May 21 22:01:45 2011
New Revision: 174007

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=174007
Log:
    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.

Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/decl.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-static7.C



More information about the Gcc-bugs mailing list