[Bug c++/43101] [4.4/4.5 regression] Rejects template with const static data member used in return type
jason at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu Feb 18 16:27:00 GMT 2010
------- Comment #2 from jason at gcc dot gnu dot org 2010-02-18 16:27 -------
Subject: Bug 43101
Author: jason
Date: Thu Feb 18 16:27:18 2010
New Revision: 156865
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=156865
Log:
PR c++/26261
PR c++/43101
* pt.c (tsubst_qualified_id): Do normal lookup in non-dependent scope.
(maybe_update_decl_type): New fn.
* parser.c (cp_parser_init_declarator): Use it.
Added:
trunk/gcc/testsuite/g++.dg/template/dependent-name6.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/cp-tree.h
trunk/gcc/cp/parser.c
trunk/gcc/cp/pt.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43101
More information about the Gcc-bugs
mailing list