public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "dimhen at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/58448] New: ICE on invalid: tree_class_check_failed
Date: Tue, 17 Sep 2013 18:39:00 -0000	[thread overview]
Message-ID: <bug-58448-4@http.gcc.gnu.org/bugzilla/> (raw)

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58448

            Bug ID: 58448
           Summary: ICE on invalid: tree_class_check_failed
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dimhen at gmail dot com

$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/local/gcc_current/libexec/gcc/x86_64-unknown-linux-gnu/4.9.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: /home/dimhen/src/gcc_current/configure
--prefix=/usr/local/gcc_current --with-multilib-list=m64
--enable-checking=yes,df,fold,rtl,tree --enable-languages=c,c++,lto
--enable-plugin --with-tune=native --with-arch=native
--enable-version-specific-runtime-libs
Thread model: posix
gcc version 4.9.0 20130917 (experimental) [trunk revision 202642] (GCC) 

$ cat tree_class_check_failed.ii 
class SmallVector struct Types4;
template <typename, typename, typename, typename> struct Types {
  typedef Types4<>::Constructable
} Types<SmallVector, SmallVector, SmallVector, SmallVector>:: >

$ g++ -fpreprocessed  -fsyntax-only tree_class_check_failed.ii 
tree_class_check_failed.ii:1:26: error: multiple types in one declaration
 class SmallVector struct Types4;
                          ^
tree_class_check_failed.ii:3:11: error: ‘Types4’ is not a template
   typedef Types4<>::Constructable
           ^
tree_class_check_failed.ii:3:21: error: typedef name may not be a
nested-name-specifier
   typedef Types4<>::Constructable
                     ^
tree_class_check_failed.ii:3:21: error: expected ‘;’ at end of member
declaration
tree_class_check_failed.ii: In instantiation of ‘struct Types<SmallVector,
SmallVector, SmallVector, SmallVector>’:
tree_class_check_failed.ii:4:60:   required from here
tree_class_check_failed.ii:3:21: internal compiler error: tree check: expected
class ‘type’, have ‘exceptional’ (error_mark) in tsubst_decl, at cp/pt.c:10745
0xe287c9 tree_class_check_failed(tree_node const*, tree_code_class, char
const*, int, char const*)
    /home/dimhen/src/gcc_current/gcc/tree.c:9258
0x65f7c1 tree_class_check
    /home/dimhen/src/gcc_current/gcc/tree.h:2727
0x65f7c1 tsubst_decl
    /home/dimhen/src/gcc_current/gcc/cp/pt.c:10745
0x64b5c4 tsubst(tree_node*, tree_node*, int, tree_node*)
    /home/dimhen/src/gcc_current/gcc/cp/pt.c:11285
0x677f61 instantiate_class_template_1
    /home/dimhen/src/gcc_current/gcc/cp/pt.c:8952
0x677f61 instantiate_class_template(tree_node*)
    /home/dimhen/src/gcc_current/gcc/cp/pt.c:9216
0x70302b complete_type(tree_node*)
    /home/dimhen/src/gcc_current/gcc/cp/typeck.c:132
0x6e1a9a cp_parser_nested_name_specifier_opt
    /home/dimhen/src/gcc_current/gcc/cp/parser.c:5309
0x6e23bb cp_parser_nested_name_specifier
    /home/dimhen/src/gcc_current/gcc/cp/parser.c:5372
0x6e24f3 cp_parser_ptr_operator
    /home/dimhen/src/gcc_current/gcc/cp/parser.c:17302
0x6e879e cp_parser_declarator
    /home/dimhen/src/gcc_current/gcc/cp/parser.c:16653
0x6ef959 cp_parser_init_declarator
    /home/dimhen/src/gcc_current/gcc/cp/parser.c:16258
0x6f0c54 cp_parser_single_declaration
    /home/dimhen/src/gcc_current/gcc/cp/parser.c:22647
0x6f3830 cp_parser_template_declaration_after_export
    /home/dimhen/src/gcc_current/gcc/cp/parser.c:22449
0x6fb5c1 cp_parser_declaration
    /home/dimhen/src/gcc_current/gcc/cp/parser.c:10728
0x6fa1ed cp_parser_declaration_seq_opt
    /home/dimhen/src/gcc_current/gcc/cp/parser.c:10650
0x6fbac7 cp_parser_translation_unit
    /home/dimhen/src/gcc_current/gcc/cp/parser.c:3939
0x6fbac7 c_parse_file()
    /home/dimhen/src/gcc_current/gcc/cp/parser.c:28893
0x80e184 c_common_parse_file()
    /home/dimhen/src/gcc_current/gcc/c-family/c-opts.c:1046
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
>From gcc-bugs-return-430017-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Sep 17 18:40:16 2013
Return-Path: <gcc-bugs-return-430017-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 13001 invoked by alias); 17 Sep 2013 18:39:39 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 1869 invoked by uid 48); 17 Sep 2013 18:31:30 -0000
From: "law at redhat dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/58380] [4.9 Regression] ice in fold_comparison
Date: Tue, 17 Sep 2013 18:39:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: tree-optimization
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: law at redhat dot com
X-Bugzilla-Status: RESOLVED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: law at redhat dot com
X-Bugzilla-Target-Milestone: 4.9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status resolution
Message-ID: <bug-58380-4-QnjX9FcocY@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-58380-4@http.gcc.gnu.org/bugzilla/>
References: <bug-58380-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2013-09/txt/msg01257.txt.bz2
Content-length: 427

http://gcc.gnu.org/bugzilla/show_bug.cgi?idX380

Jeffrey A. Law <law at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #12 from Jeffrey A. Law <law at redhat dot com> ---
Fixed on trunk.


             reply	other threads:[~2013-09-17 18:39 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-17 18:39 dimhen at gmail dot com [this message]
2013-09-17 18:45 ` [Bug c++/58448] " paolo.carlini at oracle dot com
2013-09-17 22:54 ` paolo.carlini at oracle dot com
2013-10-04 10:54 ` paolo.carlini at oracle dot com
2013-10-04 23:14 ` paolo at gcc dot gnu.org
2013-10-04 23:14 ` paolo.carlini at oracle dot com
2013-10-08 21:54 ` paolo at gcc dot gnu.org
2013-10-08 21:55 ` paolo.carlini at oracle dot com
2014-02-22 21:05 ` reichelt at gcc dot gnu.org

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=bug-58448-4@http.gcc.gnu.org/bugzilla/ \
    --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: link
Be 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).