public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/53161] New: index domain error, in ipa_remove_reference at ipa-ref.c:84
@ 2012-04-29 20:15 dcb314 at hotmail dot com
  2012-04-29 20:16 ` [Bug c++/53161] " dcb314 at hotmail dot com
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: dcb314 at hotmail dot com @ 2012-04-29 20:15 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 53161
           Summary: index domain error, in ipa_remove_reference at
                    ipa-ref.c:84
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: dcb314@hotmail.com


I just tried to compile the package luminance-hdr-2.2.1-3
on gcc-4.8 trunk dated 20120429 on an AMD x86_64 box.

The compiler said

/home/dcb/rpmbuild/BUILD/luminance-hdr-2.2.1/src/Viewers/HdrViewer.cpp:412:1:
internal compiler error: vector VEC(ipa_ref_ptr,base) index domain error, in
ipa_remove_reference at ipa-ref.c:84
 }
 ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

Preprocessed source code attached. No special flags required.


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

* [Bug c++/53161] index domain error, in ipa_remove_reference at ipa-ref.c:84
  2012-04-29 20:15 [Bug c++/53161] New: index domain error, in ipa_remove_reference at ipa-ref.c:84 dcb314 at hotmail dot com
@ 2012-04-29 20:16 ` dcb314 at hotmail dot com
  2012-04-29 20:24 ` [Bug middle-end/53161] " pinskia at gcc dot gnu.org
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: dcb314 at hotmail dot com @ 2012-04-29 20:16 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from dcb <dcb314 at hotmail dot com> 2012-04-29 20:15:53 UTC ---
Created attachment 27262
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27262
gzipped C++ source code


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

* [Bug middle-end/53161] index domain error, in ipa_remove_reference at ipa-ref.c:84
  2012-04-29 20:15 [Bug c++/53161] New: index domain error, in ipa_remove_reference at ipa-ref.c:84 dcb314 at hotmail dot com
  2012-04-29 20:16 ` [Bug c++/53161] " dcb314 at hotmail dot com
@ 2012-04-29 20:24 ` pinskia at gcc dot gnu.org
  2012-04-30  4:15 ` [Bug middle-end/53161] [4.8 Regression] ICE with weakref function and a function which takes vector types pinskia at gcc dot gnu.org
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu.org @ 2012-04-29 20:24 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-04-29 20:23:59 UTC ---
Reducing ...


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

* [Bug middle-end/53161] [4.8 Regression] ICE with weakref function and a function which takes vector types
  2012-04-29 20:15 [Bug c++/53161] New: index domain error, in ipa_remove_reference at ipa-ref.c:84 dcb314 at hotmail dot com
  2012-04-29 20:16 ` [Bug c++/53161] " dcb314 at hotmail dot com
  2012-04-29 20:24 ` [Bug middle-end/53161] " pinskia at gcc dot gnu.org
@ 2012-04-30  4:15 ` pinskia at gcc dot gnu.org
  2012-04-30 14:04 ` hjl.tools at gmail dot com
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu.org @ 2012-04-30  4:15 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2012-04-30
   Target Milestone|---                         |4.8.0
            Summary|index domain error, in      |[4.8 Regression] ICE with
                   |ipa_remove_reference at     |weakref function and a
                   |ipa-ref.c:84                |function which takes vector
                   |                            |types
     Ever Confirmed|0                           |1

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-04-30 04:14:31 UTC ---
Here is a reduced testcase:
extern int gg (int *__once_control);
static __typeof(gg) __gthrw_gg __attribute__ ((__weakref__("gg")));
typedef float v4sf __attribute__ ((__vector_size__ (16)));
extern v4sf  f (float __F);
void g(v4sf,v4sf);
void h(float m_MinValue) {
g(f(1), f(1.0f/2.2f));
}
--- CUT ---

Confirmed.


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

* [Bug middle-end/53161] [4.8 Regression] ICE with weakref function and a function which takes vector types
  2012-04-29 20:15 [Bug c++/53161] New: index domain error, in ipa_remove_reference at ipa-ref.c:84 dcb314 at hotmail dot com
                   ` (2 preceding siblings ...)
  2012-04-30  4:15 ` [Bug middle-end/53161] [4.8 Regression] ICE with weakref function and a function which takes vector types pinskia at gcc dot gnu.org
@ 2012-04-30 14:04 ` hjl.tools at gmail dot com
  2012-04-30 15:17 ` hubicka at gcc dot gnu.org
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: hjl.tools at gmail dot com @ 2012-04-30 14:04 UTC (permalink / raw)
  To: gcc-bugs

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

H.J. Lu <hjl.tools at gmail dot com> changed:

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

--- Comment #4 from H.J. Lu <hjl.tools at gmail dot com> 2012-04-30 14:04:11 UTC ---
It is caused by revision 186525:

http://gcc.gnu.org/ml/gcc-cvs/2012-04/msg00476.html


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

* [Bug middle-end/53161] [4.8 Regression] ICE with weakref function and a function which takes vector types
  2012-04-29 20:15 [Bug c++/53161] New: index domain error, in ipa_remove_reference at ipa-ref.c:84 dcb314 at hotmail dot com
                   ` (3 preceding siblings ...)
  2012-04-30 14:04 ` hjl.tools at gmail dot com
@ 2012-04-30 15:17 ` hubicka at gcc dot gnu.org
  2012-05-11 10:08 ` izamyatin at gmail dot com
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: hubicka at gcc dot gnu.org @ 2012-04-30 15:17 UTC (permalink / raw)
  To: gcc-bugs

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

Jan Hubicka <hubicka at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
         AssignedTo|unassigned at gcc dot       |hubicka at gcc dot gnu.org
                   |gnu.org                     |

--- Comment #5 from Jan Hubicka <hubicka at gcc dot gnu.org> 2012-04-30 15:17:25 UTC ---
mine.


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

* [Bug middle-end/53161] [4.8 Regression] ICE with weakref function and a function which takes vector types
  2012-04-29 20:15 [Bug c++/53161] New: index domain error, in ipa_remove_reference at ipa-ref.c:84 dcb314 at hotmail dot com
                   ` (4 preceding siblings ...)
  2012-04-30 15:17 ` hubicka at gcc dot gnu.org
@ 2012-05-11 10:08 ` izamyatin at gmail dot com
  2012-05-11 10:08 ` izamyatin at gmail dot com
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: izamyatin at gmail dot com @ 2012-05-11 10:08 UTC (permalink / raw)
  To: gcc-bugs

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

Igor Zamyatin <izamyatin at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |izamyatin at gmail dot com

--- Comment #6 from Igor Zamyatin <izamyatin at gmail dot com> 2012-05-11 10:00:51 UTC ---
I also see that LTO bootstrap fails with following message

../../src-trunk/gcc/gcov.c:2348:1: internal compiler error: vector
VEC(inline_edge_summary_t,base) index domain error, in inline_edge_summary at
ipa-inline.h:200
 }
 ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make[6]: *** [gcov.o] Error 1
make[6]: *** Waiting for unfinished jobs....
rm gcj-dbtool.pod jcf-dump.pod jv-convert.pod grmic.pod gcj.pod gc-analyze.pod
gcov.pod gfdl.pod cpp.pod gij.pod gfortran.pod gcc.pod fsf-funding.pod
make[6]: Leaving directory `/export/gnu/import/git/gcc-test-profile/bld/gcc'
make[5]: *** [all-stageprofile-gcc] Error 2
make[5]: Leaving directory `/export/gnu/import/git/gcc-test-profile/bld'
make[4]: *** [stageprofile-bubble] Error 2
make[4]: Leaving directory `/export/gnu/import/git/gcc-test-profile/bld'
make[3]: *** [profiledbootstrap] Error 2
make[3]: Leaving directory `/export/gnu/import/git/gcc-test-profile/bld'
6968.90user 244.95system 24:30.58elapsed 490%CPU (0avgtext+0avgdata
567304maxresident)k
16256inputs+8351248outputs (112major+65804975minor)pagefaults 0swaps
make[2]: *** [profiledbootstrap] Error 2
make[2]: Leaving directory `/export/gnu/import/git/gcc-test-profile'


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

* [Bug middle-end/53161] [4.8 Regression] ICE with weakref function and a function which takes vector types
  2012-04-29 20:15 [Bug c++/53161] New: index domain error, in ipa_remove_reference at ipa-ref.c:84 dcb314 at hotmail dot com
                   ` (5 preceding siblings ...)
  2012-05-11 10:08 ` izamyatin at gmail dot com
@ 2012-05-11 10:08 ` izamyatin at gmail dot com
  2012-05-21 21:05 ` roman at binarylife dot net
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: izamyatin at gmail dot com @ 2012-05-11 10:08 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from Igor Zamyatin <izamyatin at gmail dot com> 2012-05-11 10:07:07 UTC ---
Error message for x86 compilation


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

* [Bug middle-end/53161] [4.8 Regression] ICE with weakref function and a function which takes vector types
  2012-04-29 20:15 [Bug c++/53161] New: index domain error, in ipa_remove_reference at ipa-ref.c:84 dcb314 at hotmail dot com
                   ` (6 preceding siblings ...)
  2012-05-11 10:08 ` izamyatin at gmail dot com
@ 2012-05-21 21:05 ` roman at binarylife dot net
  2012-05-22 13:25 ` hubicka at gcc dot gnu.org
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: roman at binarylife dot net @ 2012-05-21 21:05 UTC (permalink / raw)
  To: gcc-bugs

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

Roman Kononov <roman at binarylife dot net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |roman at binarylife dot net

--- Comment #8 from Roman Kononov <roman at binarylife dot net> 2012-05-21 21:00:42 UTC ---
Another test case (without vectors):

$ cat test.cpp 
void gg();
static __typeof(gg) __gthrw_gg __attribute__((__weakref__("gg")));

template<typename R,typename... A>
struct data {
  template<typename Y,typename X>
  data(Y& y,R(X::*f)(A...));
};

template<typename Y,typename X,typename R,typename... A>
data<R,A...> make_data(Y& y,R(X::*f)(A...)) {
  return data<R,A...>(y,f);
}

void global(data<void>);

struct test {
  void bar() {}
  void doit() { global(make_data(*this,&test::bar)); }
};

$ g++ -std=c++11 -c test.cpp 
test.cpp:20:2: internal compiler error: vector VEC(ipa_ref_ptr,base) index
domain error, in ipa_remove_reference at ipa-ref.c:84
 };
  ^
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


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

* [Bug middle-end/53161] [4.8 Regression] ICE with weakref function and a function which takes vector types
  2012-04-29 20:15 [Bug c++/53161] New: index domain error, in ipa_remove_reference at ipa-ref.c:84 dcb314 at hotmail dot com
                   ` (7 preceding siblings ...)
  2012-05-21 21:05 ` roman at binarylife dot net
@ 2012-05-22 13:25 ` hubicka at gcc dot gnu.org
  2012-05-23  9:28 ` hubicka at gcc dot gnu.org
  2012-09-07 11:43 ` rguenth at gcc dot gnu.org
  10 siblings, 0 replies; 12+ messages in thread
From: hubicka at gcc dot gnu.org @ 2012-05-22 13:25 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #9 from Jan Hubicka <hubicka at gcc dot gnu.org> 2012-05-22 13:20:19 UTC ---
OK, this problem is caused by C++ FE corrupting symbol table by creating new
symbol from DECL_ASSEMBLER_NAME langhook while creating another symbol.  There
has to be better ways to produce those aliases than from here...

I am testing fix.
Honza


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

* [Bug middle-end/53161] [4.8 Regression] ICE with weakref function and a function which takes vector types
  2012-04-29 20:15 [Bug c++/53161] New: index domain error, in ipa_remove_reference at ipa-ref.c:84 dcb314 at hotmail dot com
                   ` (8 preceding siblings ...)
  2012-05-22 13:25 ` hubicka at gcc dot gnu.org
@ 2012-05-23  9:28 ` hubicka at gcc dot gnu.org
  2012-09-07 11:43 ` rguenth at gcc dot gnu.org
  10 siblings, 0 replies; 12+ messages in thread
From: hubicka at gcc dot gnu.org @ 2012-05-23  9:28 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #10 from Jan Hubicka <hubicka at gcc dot gnu.org> 2012-05-23 09:23:47 UTC ---
Author: hubicka
Date: Wed May 23 09:23:40 2012
New Revision: 187798

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=187798
Log:

    PR middle-end/53161
    * symtab.c (symtab_register_node): Fix ordering issue.

Added:
    trunk/gcc/testsuite/g++.dg/torture/pr53161.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/symtab.c
    trunk/gcc/testsuite/ChangeLog


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

* [Bug middle-end/53161] [4.8 Regression] ICE with weakref function and a function which takes vector types
  2012-04-29 20:15 [Bug c++/53161] New: index domain error, in ipa_remove_reference at ipa-ref.c:84 dcb314 at hotmail dot com
                   ` (9 preceding siblings ...)
  2012-05-23  9:28 ` hubicka at gcc dot gnu.org
@ 2012-09-07 11:43 ` rguenth at gcc dot gnu.org
  10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-09-07 11:43 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED

--- Comment #11 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-09-07 11:43:32 UTC ---
Fixed.


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

end of thread, other threads:[~2012-09-07 11:43 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-29 20:15 [Bug c++/53161] New: index domain error, in ipa_remove_reference at ipa-ref.c:84 dcb314 at hotmail dot com
2012-04-29 20:16 ` [Bug c++/53161] " dcb314 at hotmail dot com
2012-04-29 20:24 ` [Bug middle-end/53161] " pinskia at gcc dot gnu.org
2012-04-30  4:15 ` [Bug middle-end/53161] [4.8 Regression] ICE with weakref function and a function which takes vector types pinskia at gcc dot gnu.org
2012-04-30 14:04 ` hjl.tools at gmail dot com
2012-04-30 15:17 ` hubicka at gcc dot gnu.org
2012-05-11 10:08 ` izamyatin at gmail dot com
2012-05-11 10:08 ` izamyatin at gmail dot com
2012-05-21 21:05 ` roman at binarylife dot net
2012-05-22 13:25 ` hubicka at gcc dot gnu.org
2012-05-23  9:28 ` hubicka at gcc dot gnu.org
2012-09-07 11:43 ` 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).