re PR c++/41038 (Parsing error related to qualified name id)

PR c++/41038
	* tree.c (build_qualified_name): Call convert_from_reference.

From-SVN: r152536
This commit is contained in:
Jason Merrill 2009-10-07 14:56:28 -04:00 committed by Jason Merrill
parent 95a28767ab
commit 7097b3ac39
4 changed files with 26 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2009-10-07 Jason Merrill <jason@redhat.com>
PR c++/41038
* tree.c (build_qualified_name): Call convert_from_reference.
2009-10-06 Jason Merrill <jason@redhat.com>
Fix lookup of initialized captures in unevaluated context.

View File

@ -1284,6 +1284,8 @@ build_qualified_name (tree type, tree scope, tree name, bool template_p)
return error_mark_node;
t = build2 (SCOPE_REF, type, scope, name);
QUALIFIED_NAME_IS_TEMPLATE (t) = template_p;
if (type)
t = convert_from_reference (t);
return t;
}

View File

@ -1,3 +1,7 @@
2009-10-07 Jason Merrill <jason@redhat.com>
* g++.dg/template/scope3.C: New.
2009-10-07 Jakub Jelinek <jakub@redhat.com>
* gcc.dg/debug/dwarf2/inline3.c: New test.

View File

@ -0,0 +1,15 @@
// PR c++/41038
struct S
{
int size() const;
};
template<typename T>
struct Packer
{
int foo() {
return Packer::var.size();
}
const S& var;
};