From 9a171ca4b0532cfcb8d24a18f02097951c392845 Mon Sep 17 00:00:00 2001 From: Lee Millward Date: Thu, 22 Jun 2006 18:05:17 +0000 Subject: re PR c++/27821 (ICE with invalid ptr-to-member) PR c++/27821 * decl.c (grokdeclarator): Return error_mark_node on invalid uses of the scope resolution operator. From-SVN: r114899 --- gcc/cp/ChangeLog | 4 ++++ gcc/cp/decl.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'gcc/cp') diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 96d7123..fcea368 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -2,6 +2,10 @@ PR c++/27805 * typeck2.c (build_m_component_ref): Use error_operand_p. + + PR c++/27821 + * decl.c (grokdeclarator): Return error_mark_node on + invalid uses of the scope resolution operator. 2006-06-22 Volker Reichelt diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index c801111..5bb61cb 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -8151,7 +8151,7 @@ grokdeclarator (const cp_declarator *declarator, { /* Something like struct S { int N::j; }; */ error ("invalid use of %<::%>"); - decl = NULL_TREE; + return error_mark_node; } else if (TREE_CODE (type) == FUNCTION_TYPE) { -- cgit v1.1