re PR objc++/53441 (obj-c++.dg/ivar-invalid-type-1.mm ICE)
PR obj-c++/53441 * decl.c (grokdeclarator): Check that current_class_type is non-NULL before calling constructor_name_p. From-SVN: r187888
This commit is contained in:
parent
7be9eece4c
commit
b7d56bdfe9
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2012-05-24 Uros Bizjak <ubizjak@gmail.com>
|
||||
|
||||
PR obj-c++/53441
|
||||
* decl.c (grokdeclarator): Check that current_class_type is non-NULL
|
||||
before calling constructor_name_p.
|
||||
|
||||
2012-05-24 Paolo Carlini <paolo.carlini@oracle.com>
|
||||
|
||||
PR c++/32080
|
||||
|
|
|
@ -9803,7 +9803,8 @@ grokdeclarator (const cp_declarator *declarator,
|
|||
clones. */
|
||||
DECL_ABSTRACT (decl) = 1;
|
||||
}
|
||||
else if (constructor_name_p (unqualified_id, current_class_type))
|
||||
else if (current_class_type
|
||||
&& constructor_name_p (unqualified_id, current_class_type))
|
||||
permerror (input_location, "ISO C++ forbids nested type %qD with same name "
|
||||
"as enclosing class",
|
||||
unqualified_id);
|
||||
|
|
Loading…
Add table
Reference in a new issue