public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "cas43 at cs dot stanford.edu" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/50861] New: ICE: internal compiler error: tree check: expected tree that contains ‘decl minimal’ structure, have ‘error_mark’ in tsubst_copy_and_build, at cp/pt.c:13526
Date: Tue, 25 Oct 2011 05:29:00 -0000	[thread overview]
Message-ID: <bug-50861-4@http.gcc.gnu.org/bugzilla/> (raw)

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

             Bug #: 50861
           Summary: ICE: internal compiler error: tree check: expected
                    tree that contains ‘decl minimal’ structure, have
                    ‘error_mark’ in tsubst_copy_and_build, at
                    cp/pt.c:13526
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: cas43@cs.stanford.edu


Created attachment 25607
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25607
Program that causes g++ to ICE.

g++ ICE's with error "internal compiler error: tree check: expected tree that
contains ‘decl minimal’ structure, have ‘error_mark’ in tsubst_copy_and_build,
at cp/pt.c:13526"

Command to reproduce: /home/cas43/new-gcc/inst/bin/g++ prog.cpp -c -O3

Full diagnostic:

prog.cpp:1:40: error: there are no arguments to ‘k’ that depend on a template
parameter, so a declaration of ‘k’ must be available [-fpermissive]
prog.cpp:1:40: note: (if you use ‘-fpermissive’, G++ will accept your code, but
allowing the use of an undeclared name is deprecated)
prog.cpp: In constructor ‘A<T>::A(int) [with T = int]’:
prog.cpp:2:22: error: use of parameter from containing function
prog.cpp:2:6: error:   ‘int k’ declared here
prog.cpp:2:22: error: ‘k’ was not declared in this scope, and no declarations
were found by argument-dependent lookup at the point of instantiation
[-fpermissive]
prog.cpp:2:22: internal compiler error: tree check: expected tree that contains
‘decl minimal’ structure, have ‘error_mark’ in tsubst_copy_and_build, at
cp/pt.c:13526
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

Compiler Version:

Using built-in specs.
COLLECT_GCC=/home/cas43/new-gcc/inst/bin/g++
COLLECT_LTO_WRAPPER=/home/cas43/new-gcc/inst/libexec/gcc/x86_64-unknown-linux-gnu/4.7.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../current-gcc/configure --prefix=/home/cas43/new-gcc/inst
Thread model: posix
gcc version 4.7.0 20111024 (experimental) (GCC)


             reply	other threads:[~2011-10-25  5:29 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-25  5:29 cas43 at cs dot stanford.edu [this message]
2011-10-25  8:51 ` [Bug c++/50861] " paolo.carlini at oracle dot com
2011-10-25 11:14 ` [Bug c++/50861] [4.7 Regression] " paolo.carlini at oracle dot com
2011-10-25 13:50 ` paolo at gcc dot gnu.org
2011-10-25 13:51 ` paolo.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=bug-50861-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).