This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/27309] [4.0/4.1/4.2 regression] ICE on invalid constructor definition



------- Comment #2 from mmitchel at gcc dot gnu dot org  2006-05-02 15:59 -------
Subject: Bug 27309

Author: mmitchel
Date: Tue May  2 15:59:50 2006
New Revision: 113473

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=113473
Log:
        PR c++/27309
        * class.c (add_method): Call grok_special_member_properties.
        * decl.c (grokdeclarator): Don't call it here.
        (copy_fn_p): A TEMPLATE_DECL is never a copy constructor or
        assignment operator.  Set TYPE_HAS_CONSTURCTOR if DECL is a
        constructor.
        (start_method): Don't call grok_special_member_properties.
        * method.c (implicitly_declare_fn): Likewise.
        * pt.c (instantiate_class_template): Likewise.
        * decl2.c (grokfield): Likewise.
        PR c++/27309
        * g++.dg/parser/ctor5.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/parse/ctor5.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/class.c
    trunk/gcc/cp/decl.c
    trunk/gcc/cp/decl2.c
    trunk/gcc/cp/method.c
    trunk/gcc/cp/pt.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]