public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/49615] New: internal compiler error: verify_stmts failed / LHS in noreturn call with pointer-to-never-returning-member
@ 2011-07-02 20:30 harald at gigawatt dot nl
  2011-07-02 20:36 ` [Bug c++/49615] " harald at gigawatt dot nl
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: harald at gigawatt dot nl @ 2011-07-02 20:30 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: internal compiler error: verify_stmts failed / LHS in
                    noreturn call with pointer-to-never-returning-member
           Product: gcc
           Version: 4.6.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: harald@gigawatt.nl


I came across this while reducing another testcase (which I'll report
separately):

$ cat bug.ii
template <class T>
static inline bool Dispatch (T* obj, bool (T::*func) ())
{
    return (obj->*func) ();
}
class C
{
    bool f (int);
    bool g ();
};
bool C::f (int n)
{
    bool b;
    switch (n)
    {
    case 0:
        b = Dispatch (this, &C::g);
    case 1:
        b = Dispatch (this, &C::g);
    }
}
bool C::g ()
{
    for (;;) { }
}
$ gcc -O bug.ii
bug.ii: In member function ‘bool C::f(int)’:
bug.ii:11:6: error: LHS in noreturn call
b_48 = C::g (D.2160_46);

bug.ii:11:6: internal compiler error: verify_stmts failed
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
$ gcc -v:
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/4.6.1/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /var/tmp/pkgbuild/sys-devel/gcc-4.6.1/work/gcc-4.6.1/configure
--build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --prefix=/usr
--libdir='/usr/lib64' --sysconfdir=/etc --enable-languages=c,c++
--enable-checking --enable-build-with-cxx
Thread model: posix
gcc version 4.6.1 (GCC)


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

end of thread, other threads:[~2011-07-04 12:24 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-02 20:30 [Bug c++/49615] New: internal compiler error: verify_stmts failed / LHS in noreturn call with pointer-to-never-returning-member harald at gigawatt dot nl
2011-07-02 20:36 ` [Bug c++/49615] " harald at gigawatt dot nl
2011-07-04  9:58 ` rguenth at gcc dot gnu.org
2011-07-04  9:58 ` [Bug tree-optimization/49615] [4.6 Regression] " rguenth at gcc dot gnu.org
2011-07-04 10:05 ` hubicka at ucw dot cz
2011-07-04 10:38 ` rguenther at suse dot de
2011-07-04 12:07 ` rguenth at gcc dot gnu.org
2011-07-04 12:09 ` rguenth at gcc dot gnu.org
2011-07-04 12:19 ` rguenth at gcc dot gnu.org
2011-07-04 12:23 ` rguenth at gcc dot gnu.org
2011-07-04 12:24 ` rguenth 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).