re PR c++/20463 (ICE on using undefined type)
2005-03-18 Paolo Carlini <pcarlini@suse.de> PR c++/20463 * parser.c (cp_parser_diagnose_invalid_type_name): Check TYPE_BINFO (current_class_type) before attempting to emit inform messages. From-SVN: r96689
This commit is contained in:
parent
bc7ffd06f7
commit
32db39c035
@ -1,3 +1,10 @@
|
||||
2005-03-18 Paolo Carlini <pcarlini@suse.de>
|
||||
|
||||
PR c++/20463
|
||||
* parser.c (cp_parser_diagnose_invalid_type_name):
|
||||
Check TYPE_BINFO (current_class_type) before attempting
|
||||
to emit inform messages.
|
||||
|
||||
2005-03-17 Paolo Carlini <pcarlini@suse.de>
|
||||
|
||||
PR c++/19966
|
||||
|
@ -1995,7 +1995,8 @@ cp_parser_diagnose_invalid_type_name (cp_parser *parser, tree scope, tree id)
|
||||
template <typename T> struct B : public A<T> { X x; };
|
||||
|
||||
The user should have said "typename A<T>::X". */
|
||||
if (processing_template_decl && current_class_type)
|
||||
if (processing_template_decl && current_class_type
|
||||
&& TYPE_BINFO (current_class_type))
|
||||
{
|
||||
tree b;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user