From: "Дмитрий Дьяченко" <dimhen@gmail.com>
To: Richard Guenther <richard.guenther@gmail.com>
Cc: gcc@gcc.gnu.org
Subject: Re: [gimple] ICE "verify_gimple error"
Date: Fri, 31 Jul 2009 20:06:00 -0000 [thread overview]
Message-ID: <c534783a0907311305x5ff335f1k53b5686318030038@mail.gmail.com> (raw)
In-Reply-To: <84fc9c000907310321r576c39fbxc6ee466cc4ecd1aa@mail.gmail.com>
You are right. In rev.150316 there are no ICE.
Thanks,
Dmitry
2009/7/31 Richard Guenther <richard.guenther@gmail.com>:
> On Fri, Jul 31, 2009 at 9:53 AM, Дмитрий Дьяченко<dimhen@gmail.com> wrote:
>> Hello,
>> current (gcc version 4.5.0 20090727 (experimental) [trunk revision
>> 150136] (GCC))
>>
>> for code
>> ----
>> #include <map>
>>
>> class a;
>> class b;
>>
>> class c {
>> public:
>> b *p;
>> bool isNull() const { return p == 0; }
>> };
>>
>> class d : public c {
>> virtual ~d() {};
>> };
>>
>> std::map<b*, a*> z;
>>
>> void foo(d x) {
>> x.isNull();
>> a *&y = z[x.p];
>> }
>> ----
>>
>> produce message
>>
>> test.cpp: In function 'void foo(d)':
>> test.cpp:18:6: error: invalid operand in indirect reference
>> x
>>
>> D.8619 = &x->D.6998;
>>
>> test.cpp:18:6: internal compiler error: verify_gimple failed
>> Please submit a full bug report,
>> with preprocessed source if appropriate.
>> See <http://gcc.gnu.org/bugs.html> for instructions.
>
> Please file a bugreport about this after verifying that rev. 150222
> does not fix this (which I think it does).
>
> Thanks,
> Richard.
>
>> command line: g++ -c test.cpp
>>
>> $ gcc -v
>> Using built-in specs.
>> Target: i686-pc-linux-gnu
>> Configured with: ../gcc_current/configure
>> --prefix=/usr/local/gcc_current --enable-bootstrap --enable-shared
>> --enable-checking=yes --with-system-zlib --enable-__cxa_atexit
>> --enable-version-specific-runtime-libs --enable-languages=c,c++ :
>> (reconfigured) ../gcc_current/configure
>> --prefix=/usr/local/gcc_current --enable-bootstrap --enable-shared
>> --enable-checking=yes --with-system-zlib --enable-__cxa_atexit
>> --enable-version-specific-runtime-libs --enable-languages=c,c++ :
>> (reconfigured) ../gcc_current/configure
>> --prefix=/usr/local/gcc_current --enable-bootstrap --enable-shared
>> --enable-checking=yes --with-system-zlib --enable-__cxa_atexit
>> --enable-version-specific-runtime-libs --enable-languages=c,c++
>> --no-create --no-recursion : (reconfigured) ../gcc_current/configure
>> --prefix=/usr/local/gcc_current --enable-bootstrap --enable-shared
>> --enable-checking=yes --with-system-zlib --enable-__cxa_atexit
>> --enable-version-specific-runtime-libs --enable-languages=c,c++
>> --no-create --no-recursion : (reconfigured) ../gcc_current/configure
>> --prefix=/usr/local/gcc_current --enable-bootstrap --enable-shared
>> --enable-checking=yes --with-system-zlib --enable-__cxa_atexit
>> --enable-version-specific-runtime-libs --enable-languages=c,c++
>> --no-create --no-recursion : (reconfigured) ../gcc_current/configure
>> --prefix=/usr/local/gcc_current --enable-bootstrap --enable-shared
>> --enable-checking=yes --with-system-zlib --enable-__cxa_atexit
>> --enable-version-specific-runtime-libs --enable-languages=c,c++
>> --no-create --no-recursion : (reconfigured) ../gcc_current/configure
>> --prefix=/usr/local/gcc_current --enable-bootstrap --enable-shared
>> --enable-checking=yes --with-system-zlib --enable-__cxa_atexit
>> --enable-version-specific-runtime-libs --enable-languages=c,c++
>> --no-create --no-recursion : (reconfigured) ../gcc_current/configure
>> --prefix=/usr/local/gcc_current --enable-bootstrap --enable-shared
>> --enable-checking=yes --with-system-zlib --enable-__cxa_atexit
>> --enable-version-specific-runtime-libs --enable-languages=c,c++
>> --no-create --no-recursion : (reconfigured) ../gcc_current/configure
>> --prefix=/usr/local/gcc_current --enable-bootstrap --enable-shared
>> --enable-checking=yes --with-system-zlib --enable-__cxa_atexit
>> --enable-version-specific-runtime-libs --enable-languages=c,c++
>> --no-create --no-recursion : (reconfigured) ../gcc_current/configure
>> --prefix=/usr/local/gcc_current --enable-bootstrap --enable-shared
>> --enable-checking=yes --with-system-zlib --enable-__cxa_atexit
>> --enable-version-specific-runtime-libs --enable-languages=c,c++
>> --no-create --no-recursion : (reconfigured) ../gcc_current/configure
>> --prefix=/usr/local/gcc_current --enable-bootstrap --enable-shared
>> --enable-checking=yes --with-system-zlib --enable-__cxa_atexit
>> --enable-version-specific-runtime-libs --enable-languages=c,c++
>> --no-create --no-recursion : (reconfigured) ../gcc_current/configure
>> --prefix=/usr/local/gcc_current --enable-bootstrap --enable-shared
>> --enable-checking=yes --with-system-zlib --enable-__cxa_atexit
>> --enable-version-specific-runtime-libs --enable-languages=c,c++
>> --no-create --no-recursion : (reconfigured) ../gcc_current/configure
>> --prefix=/usr/local/gcc_current --enable-bootstrap --enable-shared
>> --enable-checking=yes --with-system-zlib --enable-__cxa_atexit
>> --enable-version-specific-runtime-libs --enable-languages=c,c++
>> --no-create --no-recursion : (reconfigured) ../gcc_current/configure
>> --prefix=/usr/local/gcc_current --enable-bootstrap --enable-shared
>> --enable-checking=yes --with-system-zlib --enable-__cxa_atexit
>> --enable-version-specific-runtime-libs --enable-languages=c,c++
>> --no-create --no-recursion
>> Thread model: posix
>> gcc version 4.5.0 20090727 (experimental) [trunk revision 150136] (GCC)
>>
>
prev parent reply other threads:[~2009-07-31 20:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-31 7:54 Дмитрий Дьяченко
2009-07-31 10:22 ` Richard Guenther
2009-07-31 20:06 ` Дмитрий Дьяченко [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c534783a0907311305x5ff335f1k53b5686318030038@mail.gmail.com \
--to=dimhen@gmail.com \
--cc=gcc@gcc.gnu.org \
--cc=richard.guenther@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).