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++/40139] [4.4/4.5 Regression] ICE on invalid use of destructor



------- Comment #3 from jason at gcc dot gnu dot org  2009-05-17 18:01 -------
Subject: Bug 40139

Author: jason
Date: Sun May 17 18:01:33 2009
New Revision: 147638

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=147638
Log:
        PR c++/40139
        * pt.c (tsubst_qualified_id): Retain the type if we aren't dealing
        with a dependent type.  Actually look up the destructor.
        * semantics.c (finish_id_expression): Fix logic.
        (finish_qualified_id_expr): Don't try to use 'this' if we aren't in
        a function.
        * typeck.c (build_x_unary_op): Diagnose taking the address of a
        constructor or destructor.
        * tree.c (get_first_fn): Handle OFFSET_REF.

Added:
    trunk/gcc/testsuite/g++.dg/template/dtor6.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/pt.c
    trunk/gcc/cp/semantics.c
    trunk/gcc/cp/tree.c
    trunk/gcc/cp/typeck.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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