re PR c++/5123 (tree check: expected identifier_node, have template_id_expr in build_...
authorNathan Sidwell <nathan@codesourcery.com>
Wed, 2 Jan 2002 12:47:26 +0000 (12:47 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Wed, 2 Jan 2002 12:47:26 +0000 (12:47 +0000)
commit18976b21446cfafe728b739b7220fd02f4ea5328
treeeb0baacc25269fa28738355eb686446377997055
parent303d1c55d3670b538425ce63d25230730d498fa1
re PR c++/5123 (tree check: expected identifier_node, have template_id_expr in build_component_ref, at cp/typeck.c:2133)

cp:
PR c++/5123
* typeck.c (build_component_ref): Cope with a TEMPLATE_ID_EXPR.
(build_x_function_call): Cope with a COMPONENT_REF containing a
TEMPLATE_ID_EXPR.
testsuite:
* g++.dg/other/component1.C: New test.

From-SVN: r48469
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/component1.C [new file with mode: 0644]