This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/54913] [4.8 Regression] qualified lookup in ctor of class template fails to find static member of reference type
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 13 Oct 2012 17:17:37 +0000
- Subject: [Bug c++/54913] [4.8 Regression] qualified lookup in ctor of class template fails to find static member of reference type
- Auto-submitted: auto-generated
- References: <bug-54913-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54913
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[4.8 Regression] |[4.8 Regression] qualified
|'#'indirect_ref' not |lookup in ctor of class
|supported by |template fails to find
|dump_decl#<declaration |static member of reference
|error>' is not a member of |type
|'E' |
--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-10-13 17:17:37 UTC ---
Reduced:
struct E
{
static const int& e;
};
template<typename>
struct R
{
R() { E::e; }
};
R<int> r;
The error goes away unless:
- E::e is a reference
- R is a template
- the lookup is in a constructor