------- Comment #5 from jason at gcc dot gnu dot org  2009-04-03 17:27 -------
Subject: Bug 39608

Author: jason
Date: Fri Apr  3 17:26:50 2009
New Revision: 145509

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=145509
Log:
        PR c++/39608
        * semantics.c (finish_id_expression): Don't assume a dependent
        member of the current instantiation isn't a valid integral
        constant expression.  Check dependent_scope_p.
        * pt.c (dependent_scope_p): Check TYPE_P.
        (tsubst_copy): If args is null, just return.

Added:
    branches/gcc-4_4-branch/gcc/testsuite/g++.dg/template/const2.C
      - copied unchanged from r145508,
trunk/gcc/testsuite/g++.dg/template/const2.C
Modified:
    branches/gcc-4_4-branch/gcc/cp/ChangeLog
    branches/gcc-4_4-branch/gcc/cp/pt.c
    branches/gcc-4_4-branch/gcc/cp/semantics.c
    branches/gcc-4_4-branch/gcc/testsuite/ChangeLog


-- 


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

Reply via email to