summaryrefslogtreecommitdiff
path: root/gcc/cp/decl.c
diff options
context:
space:
mode:
authorreichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4>2006-07-14 09:43:23 +0000
committerreichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4>2006-07-14 09:43:23 +0000
commit32955d674a1242bd4a3faec70dc74d4f12ab14b6 (patch)
treefbabf91cd6df3b094274ace02d6c968a1c097ee7 /gcc/cp/decl.c
parentf4dcd9f936e29121b03171e3b65e42917dcbb13f (diff)
downloadgcc-32955d674a1242bd4a3faec70dc74d4f12ab14b6.tar.gz
PR c++/28343
* decl.c (cp_finish_decl): Check asmspec_tree for error_mark_node. * decl2.c (grokfield): Likewise. * g++.dg/ext/asmspec1.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@115436 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/decl.c')
-rw-r--r--gcc/cp/decl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c
index 1d5be58e09f..b74a1a9bac6 100644
--- a/gcc/cp/decl.c
+++ b/gcc/cp/decl.c
@@ -5056,7 +5056,7 @@ cp_finish_decl (tree decl, tree init, bool init_const_expr_p,
/* If a name was specified, get the string. */
if (global_scope_p (current_binding_level))
asmspec_tree = maybe_apply_renaming_pragma (decl, asmspec_tree);
- if (asmspec_tree)
+ if (asmspec_tree && asmspec_tree != error_mark_node)
asmspec = TREE_STRING_POINTER (asmspec_tree);
if (current_class_type