re PR c++/13092 (Accepts invalid pointer-to-member conversion)
authorJason Merrill <jason@gcc.gnu.org>
Tue, 1 Jun 2004 15:54:33 +0000 (11:54 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 1 Jun 2004 15:54:33 +0000 (11:54 -0400)
commitc1d34f9050f4a44b52ae4b95a10a1a8d3b42061a
tree2c5a6e3f7c2f6957d79b50267b40c99537d58b30
parent3ff2f9d1d1316c01f2880e6408116cdc5e928ae0
re PR c++/13092 (Accepts invalid pointer-to-member conversion)

        PR c++/13092
        * init.c (build_offset_ref): Build SCOPE_REF with non-null
        TREE_TYPE for non-dependent names.
        * pt.c (type_dependent_expression_p): Handle SCOPE_REF with
        unknown_type_node as its TREE_TYPE.
        * cxx-pretty_print.c (pp_cxx_unqualified_id): Handle BASELINK.
        * error.c (dump_decl) <SCOPE_REF case>: Use pp_expression.
        (dump_expr) <SCOPE_REF case>: Likewise.

From-SVN: r82553
gcc/testsuite/g++.dg/template/non-dependent10.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/non-dependent7.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/non-dependent8.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/non-dependent9.C [new file with mode: 0644]