This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [gimple] ICE "verify_gimple error"


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)
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]