public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/46335] New: [C++0X] ICE: in gimple_add_tmp_var, at gimplify.c:701
@ 2010-11-06 23:05 marc.glisse at normalesup dot org
  2010-11-07 11:12 ` [Bug c++/46335] [C++0X] [4.6 Regression] " paolo.carlini at oracle dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: marc.glisse at normalesup dot org @ 2010-11-06 23:05 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: [C++0X] ICE: in gimple_add_tmp_var, at gimplify.c:701
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: marc.glisse@normalesup.org


The following code compiles fine in C++03 but not in C++0X mode. The code looks
vaguely similar to that of PR c++/46129, but the effects are different.

struct T { };
struct A {
    A(const T &tr =T()) {}
};
struct B {
    A k;
};
B kk_;
A fk_;


bug.cc: In constructor ‘B::B()’:
bug.cc:5:9: internal compiler error: in gimple_add_tmp_var, at gimplify.c:701


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

* [Bug c++/46335] [C++0X] [4.6 Regression] ICE: in gimple_add_tmp_var, at gimplify.c:701
  2010-11-06 23:05 [Bug c++/46335] New: [C++0X] ICE: in gimple_add_tmp_var, at gimplify.c:701 marc.glisse at normalesup dot org
@ 2010-11-07 11:12 ` paolo.carlini at oracle dot com
  2010-11-07 15:18 ` rguenth at gcc dot gnu.org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: paolo.carlini at oracle dot com @ 2010-11-07 11:12 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2010.11.07 11:12:14
                 CC|                            |jason at gcc dot gnu.org
            Summary|[C++0X] ICE: in             |[C++0X] [4.6 Regression]
                   |gimple_add_tmp_var, at      |ICE: in gimple_add_tmp_var,
                   |gimplify.c:701              |at gimplify.c:701
     Ever Confirmed|0                           |1

--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> 2010-11-07 11:12:14 UTC ---
Looks like a regression.


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

* [Bug c++/46335] [C++0X] [4.6 Regression] ICE: in gimple_add_tmp_var, at gimplify.c:701
  2010-11-06 23:05 [Bug c++/46335] New: [C++0X] ICE: in gimple_add_tmp_var, at gimplify.c:701 marc.glisse at normalesup dot org
  2010-11-07 11:12 ` [Bug c++/46335] [C++0X] [4.6 Regression] " paolo.carlini at oracle dot com
@ 2010-11-07 15:18 ` rguenth at gcc dot gnu.org
  2010-11-07 15:50 ` hjl.tools at gmail dot com
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2010-11-07 15:18 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.6.0


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

* [Bug c++/46335] [C++0X] [4.6 Regression] ICE: in gimple_add_tmp_var, at gimplify.c:701
  2010-11-06 23:05 [Bug c++/46335] New: [C++0X] ICE: in gimple_add_tmp_var, at gimplify.c:701 marc.glisse at normalesup dot org
  2010-11-07 11:12 ` [Bug c++/46335] [C++0X] [4.6 Regression] " paolo.carlini at oracle dot com
  2010-11-07 15:18 ` rguenth at gcc dot gnu.org
@ 2010-11-07 15:50 ` hjl.tools at gmail dot com
  2010-11-09  3:54 ` jason at gcc dot gnu.org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: hjl.tools at gmail dot com @ 2010-11-07 15:50 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> 2010-11-07 15:49:48 UTC ---
It is caused by revision 166167:

http://gcc.gnu.org/ml/gcc-cvs/2010-11/msg00053.html


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

* [Bug c++/46335] [C++0X] [4.6 Regression] ICE: in gimple_add_tmp_var, at gimplify.c:701
  2010-11-06 23:05 [Bug c++/46335] New: [C++0X] ICE: in gimple_add_tmp_var, at gimplify.c:701 marc.glisse at normalesup dot org
                   ` (2 preceding siblings ...)
  2010-11-07 15:50 ` hjl.tools at gmail dot com
@ 2010-11-09  3:54 ` jason at gcc dot gnu.org
  2010-11-09 13:47 ` jason at gcc dot gnu.org
  2010-11-09 14:40 ` jason at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: jason at gcc dot gnu.org @ 2010-11-09  3:54 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> 2010-11-09 03:54:16 UTC ---
Author: jason
Date: Tue Nov  9 03:54:12 2010
New Revision: 166470

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=166470
Log:
    PR c++/46335
    * tree.c (bot_manip): Check TREE_SIDE_EFFECTS as well.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-defarg.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/tree.c
    trunk/gcc/testsuite/ChangeLog


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

* [Bug c++/46335] [C++0X] [4.6 Regression] ICE: in gimple_add_tmp_var, at gimplify.c:701
  2010-11-06 23:05 [Bug c++/46335] New: [C++0X] ICE: in gimple_add_tmp_var, at gimplify.c:701 marc.glisse at normalesup dot org
                   ` (3 preceding siblings ...)
  2010-11-09  3:54 ` jason at gcc dot gnu.org
@ 2010-11-09 13:47 ` jason at gcc dot gnu.org
  2010-11-09 14:40 ` jason at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: jason at gcc dot gnu.org @ 2010-11-09 13:47 UTC (permalink / raw)
  To: gcc-bugs

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

Jason Merrill <jason at gcc dot gnu.org> changed:

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

--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> 2010-11-09 13:47:12 UTC ---
Fixed.


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

* [Bug c++/46335] [C++0X] [4.6 Regression] ICE: in gimple_add_tmp_var, at gimplify.c:701
  2010-11-06 23:05 [Bug c++/46335] New: [C++0X] ICE: in gimple_add_tmp_var, at gimplify.c:701 marc.glisse at normalesup dot org
                   ` (4 preceding siblings ...)
  2010-11-09 13:47 ` jason at gcc dot gnu.org
@ 2010-11-09 14:40 ` jason at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: jason at gcc dot gnu.org @ 2010-11-09 14:40 UTC (permalink / raw)
  To: gcc-bugs

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

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rguenth at gcc dot gnu.org

--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> 2010-11-09 14:40:27 UTC ---
*** Bug 46368 has been marked as a duplicate of this bug. ***


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

end of thread, other threads:[~2010-11-09 14:40 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-06 23:05 [Bug c++/46335] New: [C++0X] ICE: in gimple_add_tmp_var, at gimplify.c:701 marc.glisse at normalesup dot org
2010-11-07 11:12 ` [Bug c++/46335] [C++0X] [4.6 Regression] " paolo.carlini at oracle dot com
2010-11-07 15:18 ` rguenth at gcc dot gnu.org
2010-11-07 15:50 ` hjl.tools at gmail dot com
2010-11-09  3:54 ` jason at gcc dot gnu.org
2010-11-09 13:47 ` jason at gcc dot gnu.org
2010-11-09 14:40 ` jason 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).