public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/53491] New: internal compiler error: in build_target_expr_with_type, at cp/tree.c:587
@ 2012-05-25 20:04 k.lingaard at samsung dot com
  2012-05-25 22:04 ` [Bug c++/53491] " daniel.kruegler at googlemail dot com
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: k.lingaard at samsung dot com @ 2012-05-25 20:04 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 53491
           Summary: internal compiler error: in
                    build_target_expr_with_type, at cp/tree.c:587
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: k.lingaard@samsung.com


While doing something stupid (always the case, ain't it?) the compiler barfed
on me:

#include <queue>
#include <iostream>

using namespace std;

int main()
{
    typedef std::priority_queue<uint64_t, std::deque<uint64_t> > EventQueue;
    EventQueue m;

    uint64_t result = 0;
    result += m.pop();

    return 0;
}


Yeah, I know, you can't += on a function returning 'void', but, since the
compiler croaked, I thought I'd submit a minor bug on it.  


% g++  -O3 -W -Wall -std=c++11 -Wall -Wextra -Winline -Werror -Winit-self
-Wno-sequence-point -Wno-inline gcc_bug.cpp
gcc_bug.cpp: In function ‘int main()’:
gcc_bug.cpp:13:21: internal compiler error: in build_target_expr_with_type, at
cp/tree.c:587
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


% g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/sarc/spa/tools/gcc-470/libexec/gcc/x86_64-unknown-linux-gnu/4.7.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-4.7.0/configure --prefix=/sarc/spa/tools/gcc-470/
--with-mpc=/sarc/spa/tools/gcc-470/ --with-mpfr=/sarc/spa/tools/gcc-470/
--with-gmp=/sarc/spa/tools/gcc-470/ : (reconfigured) ../gcc-4.7.0/configure
--prefix=/sarc/spa/tools/gcc-470/ --with-mpc=/sarc/spa/tools/gcc-470/
--with-mpfr=/sarc/spa/tools/gcc-470/ --with-gmp=/sarc/spa/tools/gcc-470/ :
(reconfigured) ../gcc-4.7.0/configure --enable-languates=c,c++
--prefix=/sarc/spa/tools/gcc-470/ --with-mpc=/sarc/spa/tools/gcc-470/
--with-mpfr=/sarc/spa/tools/gcc-470/ --with-gmp=/sarc/spa/tools/gcc-470/ :
(reconfigured) ../gcc-4.7.0/configure --enable-languages=c,c++
--prefix=/sarc/spa/tools/gcc-470/ --with-mpc=/sarc/spa/tools/gcc-470/
--with-mpfr=/sarc/spa/tools/gcc-470/ --with-gmp=/sarc/spa/tools/gcc-470/
Thread model: posix
gcc version 4.7.0 (GCC)


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

* [Bug c++/53491] internal compiler error: in build_target_expr_with_type, at cp/tree.c:587
  2012-05-25 20:04 [Bug c++/53491] New: internal compiler error: in build_target_expr_with_type, at cp/tree.c:587 k.lingaard at samsung dot com
@ 2012-05-25 22:04 ` daniel.kruegler at googlemail dot com
  2012-05-25 23:12 ` paolo.carlini at oracle dot com
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: daniel.kruegler at googlemail dot com @ 2012-05-25 22:04 UTC (permalink / raw)
  To: gcc-bugs

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

Daniel Krügler <daniel.kruegler at googlemail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |daniel.kruegler at
                   |                            |googlemail dot com

--- Comment #1 from Daniel Krügler <daniel.kruegler at googlemail dot com> 2012-05-25 20:42:45 UTC ---
This error also exists in gcc 4.8.0 20120520 (experimental) with the slightly
modified error location (-Wall -std=c++11):

"12|internal compiler error: in build_target_expr_with_type, at cp/tree.c:602"


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

* [Bug c++/53491] internal compiler error: in build_target_expr_with_type, at cp/tree.c:587
  2012-05-25 20:04 [Bug c++/53491] New: internal compiler error: in build_target_expr_with_type, at cp/tree.c:587 k.lingaard at samsung dot com
  2012-05-25 22:04 ` [Bug c++/53491] " daniel.kruegler at googlemail dot com
@ 2012-05-25 23:12 ` paolo.carlini at oracle dot com
  2012-05-25 23:40 ` [Bug c++/53491] [4.7/4.8 Regression] ICE " paolo.carlini at oracle dot com
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: paolo.carlini at oracle dot com @ 2012-05-25 23:12 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2012-05-25
     Ever Confirmed|0                           |1

--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-05-25 22:51:33 UTC ---
Eh, eh, the compiler barfed and croaked (or a mix) because of this:

  gcc_assert (!VOID_TYPE_P (type));

Should be easy to fix, then.


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

* [Bug c++/53491] [4.7/4.8 Regression] ICE in build_target_expr_with_type, at cp/tree.c:587
  2012-05-25 20:04 [Bug c++/53491] New: internal compiler error: in build_target_expr_with_type, at cp/tree.c:587 k.lingaard at samsung dot com
  2012-05-25 22:04 ` [Bug c++/53491] " daniel.kruegler at googlemail dot com
  2012-05-25 23:12 ` paolo.carlini at oracle dot com
@ 2012-05-25 23:40 ` paolo.carlini at oracle dot com
  2012-05-26  1:32 ` paolo.carlini at oracle dot com
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: paolo.carlini at oracle dot com @ 2012-05-25 23:40 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-invalid-code
            Summary|internal compiler error: in |[4.7/4.8 Regression] ICE in
                   |build_target_expr_with_type |build_target_expr_with_type
                   |, at cp/tree.c:587          |, at cp/tree.c:587

--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-05-25 23:14:39 UTC ---
This is enough:

struct M
{
  void pop();
};

int main()
{
  int result = 0;
  M m;

  result += m.pop();
}

looks like a Regression.


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

* [Bug c++/53491] [4.7/4.8 Regression] ICE in build_target_expr_with_type, at cp/tree.c:587
  2012-05-25 20:04 [Bug c++/53491] New: internal compiler error: in build_target_expr_with_type, at cp/tree.c:587 k.lingaard at samsung dot com
                   ` (2 preceding siblings ...)
  2012-05-25 23:40 ` [Bug c++/53491] [4.7/4.8 Regression] ICE " paolo.carlini at oracle dot com
@ 2012-05-26  1:32 ` paolo.carlini at oracle dot com
  2012-05-26 21:23 ` paolo at gcc dot gnu.org
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: paolo.carlini at oracle dot com @ 2012-05-26  1:32 UTC (permalink / raw)
  To: gcc-bugs

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

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 #4 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-05-26 00:13:50 UTC ---
On it.


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

* [Bug c++/53491] [4.7/4.8 Regression] ICE in build_target_expr_with_type, at cp/tree.c:587
  2012-05-25 20:04 [Bug c++/53491] New: internal compiler error: in build_target_expr_with_type, at cp/tree.c:587 k.lingaard at samsung dot com
                   ` (3 preceding siblings ...)
  2012-05-26  1:32 ` paolo.carlini at oracle dot com
@ 2012-05-26 21:23 ` paolo at gcc dot gnu.org
  2012-05-26 21:42 ` [Bug c++/53491] [4.7 " paolo.carlini at oracle dot com
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: paolo at gcc dot gnu.org @ 2012-05-26 21:23 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> 2012-05-26 21:20:44 UTC ---
Author: paolo
Date: Sat May 26 21:20:38 2012
New Revision: 187917

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=187917
Log:
/cp
2012-05-26  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/53491
    * tree.c (stabilize_expr): Handle exp of void type.

/testsuite
2012-05-26  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/53491
    * g++.dg/parse/crash60.C: New.


Added:
    trunk/gcc/testsuite/g++.dg/parse/crash60.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/tree.c
    trunk/gcc/testsuite/ChangeLog


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

* [Bug c++/53491] [4.7 Regression] ICE in build_target_expr_with_type, at cp/tree.c:587
  2012-05-25 20:04 [Bug c++/53491] New: internal compiler error: in build_target_expr_with_type, at cp/tree.c:587 k.lingaard at samsung dot com
                   ` (4 preceding siblings ...)
  2012-05-26 21:23 ` paolo at gcc dot gnu.org
@ 2012-05-26 21:42 ` paolo.carlini at oracle dot com
  2012-05-29 10:31 ` rguenth at gcc dot gnu.org
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: paolo.carlini at oracle dot com @ 2012-05-26 21:42 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[4.7/4.8 Regression] ICE in |[4.7 Regression] ICE in
                   |build_target_expr_with_type |build_target_expr_with_type
                   |, at cp/tree.c:587          |, at cp/tree.c:587

--- Comment #6 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-05-26 21:23:57 UTC ---
Fixed in mainline so far.


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

* [Bug c++/53491] [4.7 Regression] ICE in build_target_expr_with_type, at cp/tree.c:587
  2012-05-25 20:04 [Bug c++/53491] New: internal compiler error: in build_target_expr_with_type, at cp/tree.c:587 k.lingaard at samsung dot com
                   ` (5 preceding siblings ...)
  2012-05-26 21:42 ` [Bug c++/53491] [4.7 " paolo.carlini at oracle dot com
@ 2012-05-29 10:31 ` rguenth at gcc dot gnu.org
  2012-05-29 10:57 ` paolo at gcc dot gnu.org
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-05-29 10:31 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.7.1


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

* [Bug c++/53491] [4.7 Regression] ICE in build_target_expr_with_type, at cp/tree.c:587
  2012-05-25 20:04 [Bug c++/53491] New: internal compiler error: in build_target_expr_with_type, at cp/tree.c:587 k.lingaard at samsung dot com
                   ` (6 preceding siblings ...)
  2012-05-29 10:31 ` rguenth at gcc dot gnu.org
@ 2012-05-29 10:57 ` paolo at gcc dot gnu.org
  2012-05-29 10:58 ` paolo.carlini at oracle dot com
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: paolo at gcc dot gnu.org @ 2012-05-29 10:57 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> 2012-05-29 10:56:57 UTC ---
Author: paolo
Date: Tue May 29 10:56:53 2012
New Revision: 187950

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=187950
Log:
/cp
2012-05-29  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/53491
    * tree.c (stabilize_expr): Handle exp of void type.

/testsuite
2012-05-29  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/53491
    * g++.dg/parse/crash60.C: New.

Added:
    branches/gcc-4_7-branch/gcc/testsuite/g++.dg/parse/crash60.C
Modified:
    branches/gcc-4_7-branch/gcc/cp/ChangeLog
    branches/gcc-4_7-branch/gcc/cp/tree.c
    branches/gcc-4_7-branch/gcc/testsuite/ChangeLog


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

* [Bug c++/53491] [4.7 Regression] ICE in build_target_expr_with_type, at cp/tree.c:587
  2012-05-25 20:04 [Bug c++/53491] New: internal compiler error: in build_target_expr_with_type, at cp/tree.c:587 k.lingaard at samsung dot com
                   ` (7 preceding siblings ...)
  2012-05-29 10:57 ` paolo at gcc dot gnu.org
@ 2012-05-29 10:58 ` paolo.carlini at oracle dot com
  2012-05-29 11:31 ` paolo at gcc dot gnu.org
  2012-06-01 23:30 ` pinskia at gcc dot gnu.org
  10 siblings, 0 replies; 12+ messages in thread
From: paolo.carlini at oracle dot com @ 2012-05-29 10:58 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #7 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> 2012-05-29 10:56:57 UTC ---
Author: paolo
Date: Tue May 29 10:56:53 2012
New Revision: 187950

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=187950
Log:
/cp
2012-05-29  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/53491
    * tree.c (stabilize_expr): Handle exp of void type.

/testsuite
2012-05-29  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/53491
    * g++.dg/parse/crash60.C: New.

Added:
    branches/gcc-4_7-branch/gcc/testsuite/g++.dg/parse/crash60.C
Modified:
    branches/gcc-4_7-branch/gcc/cp/ChangeLog
    branches/gcc-4_7-branch/gcc/cp/tree.c
    branches/gcc-4_7-branch/gcc/testsuite/ChangeLog

--- Comment #8 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-05-29 10:57:38 UTC ---
Fixed mainline and 4.7.1.


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

* [Bug c++/53491] [4.7 Regression] ICE in build_target_expr_with_type, at cp/tree.c:587
  2012-05-25 20:04 [Bug c++/53491] New: internal compiler error: in build_target_expr_with_type, at cp/tree.c:587 k.lingaard at samsung dot com
                   ` (8 preceding siblings ...)
  2012-05-29 10:58 ` paolo.carlini at oracle dot com
@ 2012-05-29 11:31 ` paolo at gcc dot gnu.org
  2012-06-01 23:30 ` pinskia at gcc dot gnu.org
  10 siblings, 0 replies; 12+ messages in thread
From: paolo at gcc dot gnu.org @ 2012-05-29 11:31 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #8 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-05-29 10:57:38 UTC ---
Fixed mainline and 4.7.1.


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

* [Bug c++/53491] [4.7 Regression] ICE in build_target_expr_with_type, at cp/tree.c:587
  2012-05-25 20:04 [Bug c++/53491] New: internal compiler error: in build_target_expr_with_type, at cp/tree.c:587 k.lingaard at samsung dot com
                   ` (9 preceding siblings ...)
  2012-05-29 11:31 ` paolo at gcc dot gnu.org
@ 2012-06-01 23:30 ` pinskia at gcc dot gnu.org
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu.org @ 2012-06-01 23:30 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |g++bug at oxyware dot com

--- Comment #9 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-06-01 23:30:07 UTC ---
*** Bug 53560 has been marked as a duplicate of this bug. ***


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

end of thread, other threads:[~2012-06-01 23:30 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-25 20:04 [Bug c++/53491] New: internal compiler error: in build_target_expr_with_type, at cp/tree.c:587 k.lingaard at samsung dot com
2012-05-25 22:04 ` [Bug c++/53491] " daniel.kruegler at googlemail dot com
2012-05-25 23:12 ` paolo.carlini at oracle dot com
2012-05-25 23:40 ` [Bug c++/53491] [4.7/4.8 Regression] ICE " paolo.carlini at oracle dot com
2012-05-26  1:32 ` paolo.carlini at oracle dot com
2012-05-26 21:23 ` paolo at gcc dot gnu.org
2012-05-26 21:42 ` [Bug c++/53491] [4.7 " paolo.carlini at oracle dot com
2012-05-29 10:31 ` rguenth at gcc dot gnu.org
2012-05-29 10:57 ` paolo at gcc dot gnu.org
2012-05-29 10:58 ` paolo.carlini at oracle dot com
2012-05-29 11:31 ` paolo at gcc dot gnu.org
2012-06-01 23:30 ` pinskia at gcc dot gnu.org

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