public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/33589]  New: [4.3 regression] ICE on valid code at -O2: verify_flow_info failed
@ 2007-09-29 17:56 a dot chavasse at gmail dot com
  2007-09-29 19:05 ` [Bug middle-end/33589] " rguenth at gcc dot gnu dot org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: a dot chavasse at gmail dot com @ 2007-09-29 17:56 UTC (permalink / raw)
  To: gcc-bugs

g++43 -v output:

Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc/configure --program-suffix=43 --disable-multilib
--enable-languages=c,c++
Thread model: posix
gcc version 4.3.0 20070929 (experimental) (GCC)

Built from svn trunk, revision 128885


Compiling this with -O2 or -O3 fails with the following message:

verify_flow_info_failed.cpp: In function 'void somefunction()':
verify_flow_info_failed.cpp:29: error: BB 2 last statement has incorrectly set
region
verify_flow_info_failed.cpp:29: internal compiler error: verify_flow_info
failed


struct base
{
        void somemethod() {}
};

struct derived : public base
{
};

struct smartpointer
{
        ~smartpointer()
        {
        }

        operator derived*() const
        {
                return 0;
        }
};

typedef void ( derived::* methodptr_type )();

methodptr_type getmemberptr()
{
        return &derived::somemethod;
}

void somefunction()
{
        smartpointer pObj;
        ( pObj->*getmemberptr() )();
}


-- 
           Summary: [4.3 regression] ICE on valid code at -O2:
                    verify_flow_info failed
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: a dot chavasse at gmail dot com
 GCC build triplet: x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu


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


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

end of thread, other threads:[~2007-10-28 17:02 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-29 17:56 [Bug c++/33589] New: [4.3 regression] ICE on valid code at -O2: verify_flow_info failed a dot chavasse at gmail dot com
2007-09-29 19:05 ` [Bug middle-end/33589] " rguenth at gcc dot gnu dot org
2007-10-10 18:06 ` mmitchel at gcc dot gnu dot org
2007-10-19 16:37 ` janis at gcc dot gnu dot org
2007-10-23  6:10 ` pinskia at gcc dot gnu dot org
2007-10-23  6:39 ` pinskia at gcc dot gnu dot org
2007-10-23  6:53 ` pinskia at gcc dot gnu dot org
2007-10-28  1:11 ` pinskia at gcc dot gnu dot org
2007-10-28  1:18 ` pinskia at gcc dot gnu dot org
2007-10-28 17:01 ` pinskia at gcc dot gnu dot org
2007-10-28 17:02 ` pinskia at gcc dot gnu dot 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).