public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/48421] New: [4.7 Regression] ICE in build_new_method_call
@ 2011-04-03  0:36 redi at gcc dot gnu.org
  2011-04-03  0:38 ` [Bug c++/48421] " redi at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: redi at gcc dot gnu.org @ 2011-04-03  0:36 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: [4.7 Regression] ICE in build_new_method_call
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: redi@gcc.gnu.org


#include <functional>
#include <chrono>
#include <memory>
#include <condition_variable>

struct Impl;
typedef std::shared_ptr<Impl> shared_base_type;

struct base
{
  shared_base_type ptr;
};

struct Impl : base
{
  Impl() = default;
};


The c++0x code above gives me an ICE with trunk, but it goes away if I change
any of the includes, or try to compile a preprocessed version (which is why I
haven't attached preprocessed source)

$  ~/gcc/4.x/bin/g++ -std=c++0x ice.cc -c 
ice.cc:14:8: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


Program received signal SIGSEGV, Segmentation fault.
build_new_method_call (instance=0x7ffff5954b70, fns=<value optimized out>,
args=0x7fffffffdd50, conversion_path=0x7ffff5a3ae40, 
    flags=<value optimized out>, fn_p=0x7fffffffdd58, complain=<value optimized
out>) at ../../src/gcc/gcc/cp/call.c:6801
6801      basetype = TYPE_MAIN_VARIANT (TREE_TYPE (instance));


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

* [Bug c++/48421] [4.7 Regression] ICE in build_new_method_call
  2011-04-03  0:36 [Bug c++/48421] New: [4.7 Regression] ICE in build_new_method_call redi at gcc dot gnu.org
@ 2011-04-03  0:38 ` redi at gcc dot gnu.org
  2011-04-03  0:48 ` paolo.carlini at oracle dot com
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: redi at gcc dot gnu.org @ 2011-04-03  0:38 UTC (permalink / raw)
  To: gcc-bugs

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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-04-03 00:38:43 UTC ---
I'm able to reproduce this on two different machines with trunk so I don't
think it's just something weird on my machine - can anyone else reproduce it?


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

* [Bug c++/48421] [4.7 Regression] ICE in build_new_method_call
  2011-04-03  0:36 [Bug c++/48421] New: [4.7 Regression] ICE in build_new_method_call redi at gcc dot gnu.org
  2011-04-03  0:38 ` [Bug c++/48421] " redi at gcc dot gnu.org
@ 2011-04-03  0:48 ` paolo.carlini at oracle dot com
  2011-04-03  1:01 ` redi at gcc dot gnu.org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-04-03  0:48 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2011.04.03 00:48:40
     Ever Confirmed|0                           |1

--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-04-03 00:48:40 UTC ---
Jon, I can, sadly.


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

* [Bug c++/48421] [4.7 Regression] ICE in build_new_method_call
  2011-04-03  0:36 [Bug c++/48421] New: [4.7 Regression] ICE in build_new_method_call redi at gcc dot gnu.org
  2011-04-03  0:38 ` [Bug c++/48421] " redi at gcc dot gnu.org
  2011-04-03  0:48 ` paolo.carlini at oracle dot com
@ 2011-04-03  1:01 ` redi at gcc dot gnu.org
  2011-04-03 11:04 ` rguenth at gcc dot gnu.org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: redi at gcc dot gnu.org @ 2011-04-03  1:01 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-04-03 01:01:27 UTC ---
Thanks, Paolo.  I'm not sure how to reduce it further, the only header that's
needed is <memory> but removing the others prevents the ICE


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

* [Bug c++/48421] [4.7 Regression] ICE in build_new_method_call
  2011-04-03  0:36 [Bug c++/48421] New: [4.7 Regression] ICE in build_new_method_call redi at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2011-04-03  1:01 ` redi at gcc dot gnu.org
@ 2011-04-03 11:04 ` rguenth at gcc dot gnu.org
  2011-06-07 21:20 ` jason at gcc dot gnu.org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-04-03 11:04 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.7.0


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

* [Bug c++/48421] [4.7 Regression] ICE in build_new_method_call
  2011-04-03  0:36 [Bug c++/48421] New: [4.7 Regression] ICE in build_new_method_call redi at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2011-04-03 11:04 ` rguenth at gcc dot gnu.org
@ 2011-06-07 21:20 ` jason at gcc dot gnu.org
  2011-06-07 23:02 ` redi at gcc dot gnu.org
  2011-06-07 23:15 ` paolo.carlini at oracle dot com
  6 siblings, 0 replies; 8+ messages in thread
From: jason at gcc dot gnu.org @ 2011-06-07 21:20 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> 2011-06-07 21:19:53 UTC ---
I can't reproduce this.


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

* [Bug c++/48421] [4.7 Regression] ICE in build_new_method_call
  2011-04-03  0:36 [Bug c++/48421] New: [4.7 Regression] ICE in build_new_method_call redi at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2011-06-07 21:20 ` jason at gcc dot gnu.org
@ 2011-06-07 23:02 ` redi at gcc dot gnu.org
  2011-06-07 23:15 ` paolo.carlini at oracle dot com
  6 siblings, 0 replies; 8+ messages in thread
From: redi at gcc dot gnu.org @ 2011-06-07 23:02 UTC (permalink / raw)
  To: gcc-bugs

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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |paolo.carlini at oracle dot
                   |                            |com

--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-06-07 23:01:32 UTC ---
No, I can't either with current trunk

Unless Paolo can still reproduce it I guess we can close it as WORKSFORME


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

* [Bug c++/48421] [4.7 Regression] ICE in build_new_method_call
  2011-04-03  0:36 [Bug c++/48421] New: [4.7 Regression] ICE in build_new_method_call redi at gcc dot gnu.org
                   ` (5 preceding siblings ...)
  2011-06-07 23:02 ` redi at gcc dot gnu.org
@ 2011-06-07 23:15 ` paolo.carlini at oracle dot com
  6 siblings, 0 replies; 8+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-06-07 23:15 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #6 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-06-07 23:14:54 UTC ---
Can't reproduce anymore either.


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

end of thread, other threads:[~2011-06-07 23:15 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-03  0:36 [Bug c++/48421] New: [4.7 Regression] ICE in build_new_method_call redi at gcc dot gnu.org
2011-04-03  0:38 ` [Bug c++/48421] " redi at gcc dot gnu.org
2011-04-03  0:48 ` paolo.carlini at oracle dot com
2011-04-03  1:01 ` redi at gcc dot gnu.org
2011-04-03 11:04 ` rguenth at gcc dot gnu.org
2011-06-07 21:20 ` jason at gcc dot gnu.org
2011-06-07 23:02 ` redi at gcc dot gnu.org
2011-06-07 23:15 ` 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).