public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "mmitchel at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/27102] [4.0/4.1/4.2 regression] ICE with invalid class name in function template Date: Wed, 19 Apr 2006 16:58:00 -0000 [thread overview] Message-ID: <20060419165832.20599.qmail@sourceware.org> (raw) In-Reply-To: <bug-27102-12489@http.gcc.gnu.org/bugzilla/> ------- Comment #7 from mmitchel at gcc dot gnu dot org 2006-04-19 16:58 ------- Subject: Bug 27102 Author: mmitchel Date: Wed Apr 19 16:58:23 2006 New Revision: 113081 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=113081 Log: PR c++/27102 * class.c (currently_open_class): Tidy. * decl.c (grokdeclarator): If we encounter an erroneous declarator, assume that we have already issued an error message and return. Return error_mark_node instead of NULL_TREE in more places. Issue errors about function definitions that do not have a function declarator. Check for complete types for all function definitions. * cp-tree.h (cp_error_declarator): Remove. (currently_open_class): Change return type. * parser.c (cp_parser_id_expression): Add optional_p parameter. (cp_parser_parse_diagnose_invalid_type_name): Adjust calls. (cp_parser_id_expression): Likewise. (cp_parser_unqualified_id): If the name is optional, return NULL_TREE. (cp_parser_postfix_dot_deref_expression): Adjust calls. (cp_parser_type_parameter): Likewise. (cp_parser_unqualified_id): Likewise. (cp_parser_direct_declarator): Likewise. (cp_parser_declarator_id): Add optional_p parameter. (cp_parser_function_definition_from_specifiers_and_declarator): Assume that start_function indicates failure only if it has issued an error. (cp_parser_omp_var_list_no_open): Adjust calls. PR c++/27102 * g++.dg/template/crash35.C: Tweak error markers. * g++.dg/template/crash46.C: New test. * g++.old-deja/g++.brendan/friend4.C: Tweak error markers. * g++.old-deja/g++.pt/incomplete1.C: Likewise. Added: trunk/gcc/testsuite/g++.dg/template/crash46.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/class.c trunk/gcc/cp/cp-tree.h trunk/gcc/cp/decl.c trunk/gcc/cp/parser.c trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/g++.dg/template/crash35.C trunk/gcc/testsuite/g++.old-deja/g++.brendan/friend4.C trunk/gcc/testsuite/g++.old-deja/g++.pt/incomplete1.C -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27102
next prev parent reply other threads:[~2006-04-19 16:58 UTC|newest] Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top 2006-04-10 14:49 [Bug c++/27102] New: Semgmentation Fault on Template mmirzaza at cs dot uwaterloo dot ca 2006-04-10 15:01 ` [Bug c++/27102] [4.0/4.1/4.2 regression] ICE with invalid class name in function template reichelt at gcc dot gnu dot org 2006-04-10 15:03 ` reichelt at gcc dot gnu dot org 2006-04-16 18:31 ` mmitchel at gcc dot gnu dot org 2006-04-16 19:48 ` mmitchel at gcc dot gnu dot org 2006-04-18 10:43 ` reichelt at gcc dot gnu dot org 2006-04-18 19:41 ` mark at codesourcery dot com 2006-04-18 21:20 ` reichelt at gcc dot gnu dot org 2006-04-19 16:58 ` mmitchel at gcc dot gnu dot org [this message] 2006-04-19 17:02 ` [Bug c++/27102] [4.0/4.1 " mmitchel at gcc dot gnu dot org 2006-04-20 10:45 ` reichelt at gcc dot gnu dot org 2006-04-27 19:03 ` mmitchel at gcc dot gnu dot org 2006-04-27 19:06 ` mmitchel at gcc dot gnu dot org 2006-04-29 21:40 ` reichelt at gcc dot gnu dot org 2006-05-02 16:31 ` reichelt at gcc dot gnu dot org 2006-05-03 0:19 ` mmitchel at gcc dot gnu dot org 2006-05-25 2:45 ` mmitchel at gcc dot gnu dot org 2007-02-14 9:11 ` mmitchel at gcc dot gnu dot org 2007-02-21 11:12 ` rguenth at gcc dot gnu dot org 2007-03-26 19:44 ` bangerth at dealii dot org 2007-04-09 14:08 ` reichelt at gcc dot gnu dot org 2008-07-04 15:28 ` [Bug c++/27102] [4.1 " jsm28 at gcc dot gnu dot org 2009-12-31 11:57 ` paolo dot carlini at oracle dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20060419165832.20599.qmail@sourceware.org \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).