mirror of git://gcc.gnu.org/git/gcc.git
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
|
@ -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>
|
2012-05-24 Paolo Carlini <paolo.carlini@oracle.com>
|
||||||
|
|
||||||
PR c++/32080
|
PR c++/32080
|
||||||
|
|
|
@ -9803,7 +9803,8 @@ grokdeclarator (const cp_declarator *declarator,
|
||||||
clones. */
|
clones. */
|
||||||
DECL_ABSTRACT (decl) = 1;
|
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 "
|
permerror (input_location, "ISO C++ forbids nested type %qD with same name "
|
||||||
"as enclosing class",
|
"as enclosing class",
|
||||||
unqualified_id);
|
unqualified_id);
|
||||||
|
|
Loading…
Reference in New Issue