public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [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
@ 2011-10-25  5:29 cas43 at cs dot stanford.edu
  2011-10-25  8:51 ` [Bug c++/50861] " paolo.carlini at oracle dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: cas43 at cs dot stanford.edu @ 2011-10-25  5:29 UTC (permalink / raw)
  To: gcc-bugs

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)


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c++/50861] 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
  2011-10-25  5:29 [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 cas43 at cs dot stanford.edu
@ 2011-10-25  8:51 ` paolo.carlini at oracle dot com
  2011-10-25 11:14 ` [Bug c++/50861] [4.7 Regression] " paolo.carlini at oracle dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-10-25  8:51 UTC (permalink / raw)
  To: gcc-bugs

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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2011-10-25
     Ever Confirmed|0                           |1


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c++/50861] [4.7 Regression] 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
  2011-10-25  5:29 [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 cas43 at cs dot stanford.edu
  2011-10-25  8:51 ` [Bug c++/50861] " paolo.carlini at oracle dot com
@ 2011-10-25 11:14 ` 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
  3 siblings, 0 replies; 5+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-10-25 11:14 UTC (permalink / raw)
  To: gcc-bugs

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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
         AssignedTo|unassigned at gcc dot       |paolo.carlini at oracle dot
                   |gnu.org                     |com

--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-10-25 11:13:35 UTC ---
Mine.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c++/50861] [4.7 Regression] 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
  2011-10-25  5:29 [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 cas43 at cs dot stanford.edu
  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
  3 siblings, 0 replies; 5+ messages in thread
From: paolo at gcc dot gnu.org @ 2011-10-25 13:50 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> 2011-10-25 13:48:17 UTC ---
Author: paolo
Date: Tue Oct 25 13:48:10 2011
New Revision: 180430

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=180430
Log:
/cp
2011-10-25  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/50858
    * typeck.c (composite_pointer_type_r): Check return value of
    composite_pointer_type_r for error_mark_node.

/testsuite
2011-10-25  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/50858
    * g++.dg/overload/operator5.C: New.

/cp
2011-10-25  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/50861
    * pt.c (tsubst_copy_and_build): Check return value of
    tsubst_copy_and_build for error_mark_node.

/testsuite
2011-10-25  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/50861
    * g++.dg/template/crash108.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/overload/operator5.C
    trunk/gcc/testsuite/g++.dg/template/crash108.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/pt.c
    trunk/gcc/cp/typeck.c
    trunk/gcc/testsuite/ChangeLog


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c++/50861] [4.7 Regression] 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
  2011-10-25  5:29 [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 cas43 at cs dot stanford.edu
                   ` (2 preceding siblings ...)
  2011-10-25 13:50 ` paolo at gcc dot gnu.org
@ 2011-10-25 13:51 ` paolo.carlini at oracle dot com
  3 siblings, 0 replies; 5+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-10-25 13:51 UTC (permalink / raw)
  To: gcc-bugs

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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.7.0

--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-10-25 13:50:30 UTC ---
Fixed.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-10-25 13:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-25  5:29 [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 cas43 at cs dot stanford.edu
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

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).