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:
parent
95a28767ab
commit
7097b3ac39
@ -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.
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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.
|
||||
|
15
gcc/testsuite/g++.dg/template/scope3.C
Normal file
15
gcc/testsuite/g++.dg/template/scope3.C
Normal 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;
|
||||
};
|
Loading…
Reference in New Issue
Block a user