This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/26261] Rejects template with const static data member used in return type
- From: "jason at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Feb 2010 16:27:37 -0000
- Subject: [Bug c++/26261] Rejects template with const static data member used in return type
- References: <bug-26261-102@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #13 from jason at gcc dot gnu dot org 2010-02-18 16:27 -------
Subject: Bug 26261
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=26261