public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/51565] New: fastcall in array of method pointers: internal compiler error
@ 2011-12-15 11:06 arr at kent dot ac.uk
2011-12-29 6:03 ` [Bug target/51565] [4.4/4.5/4.6/4.7 Regression] " pinskia at gcc dot gnu.org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: arr at kent dot ac.uk @ 2011-12-15 11:06 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51565
Bug #: 51565
Summary: fastcall in array of method pointers: internal
compiler error
Classification: Unclassified
Product: gcc
Version: 4.5.1
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: arr@kent.ac.uk
Created attachment 26099
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26099
Preprocessed source (15 lines)
The attached program (presumably illegal) attempts to insert a pointer to a
class member function into an array of such pointers. However, the inserted
function has the fastcall attribute: this causes an internal compiler error:
> gcc -v --save-temps -c -Wall bug.cpp
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i586-suse-linux/4.5/lto-wrapper
Target: i586-suse-linux
Configured with: ../configure --prefix=/usr --infodir=/usr/share/info
--mandir=/usr/share/man --libdir=/usr/lib --libexecdir=/usr/lib
--enable-languages=c,c++,objc,fortran,obj-c++,java,ada
--enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.5
--enable-ssp --disable-libssp --disable-plugin
--with-bugurl=http://bugs.opensuse.org/ --with-pkgversion='SUSE Linux'
--disable-libgcj --disable-libmudflap --with-slibdir=/lib --with-system-zlib
--enable-__cxa_atexit --enable-libstdcxx-allocator=new --disable-libstdcxx-pch
--enable-version-specific-runtime-libs --program-suffix=-4.5
--enable-linux-futex --without-system-libunwind --enable-gold
--with-plugin-ld=/usr/bin/gold --with-arch-32=i586 --with-tune=generic
--build=i586-suse-linux
Thread model: posix
gcc version 4.5.1 20101208 [gcc-4_5-branch revision 167585] (SUSE Linux)
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-c' '-Wall' '-mtune=generic'
'-march=i586'
/usr/lib/gcc/i586-suse-linux/4.5/cc1plus -E -quiet -v -D_GNU_SOURCE bug.cpp
-mtune=generic -march=i586 -Wall -fpch-preprocess -o bug.ii
#include "..." search starts here:
#include <...> search starts here:
/usr/include/c++/4.5
/usr/include/c++/4.5/i586-suse-linux
/usr/include/c++/4.5/backward
/usr/local/include
/usr/lib/gcc/i586-suse-linux/4.5/include
/usr/lib/gcc/i586-suse-linux/4.5/include-fixed
/usr/lib/gcc/i586-suse-linux/4.5/../../../../i586-suse-linux/include
/usr/include
End of search list.
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-c' '-Wall' '-mtune=generic'
'-march=i586'
/usr/lib/gcc/i586-suse-linux/4.5/cc1plus -fpreprocessed bug.ii -quiet
-dumpbase bug.cpp -mtune=generic -march=i586 -auxbase bug -Wall -version -o
bug.s
GNU C++ (SUSE Linux) version 4.5.1 20101208 [gcc-4_5-branch revision 167585]
(i586-suse-linux)
compiled by GNU C version 4.5.1 20101208 [gcc-4_5-branch revision
167585], GMP version 5.0.1, MPFR version 3.0.0-p3, MPC version 0.8.2
GGC heuristics: --param ggc-min-expand=97 --param ggc-min-heapsize=125809
GNU C++ (SUSE Linux) version 4.5.1 20101208 [gcc-4_5-branch revision 167585]
(i586-suse-linux)
compiled by GNU C version 4.5.1 20101208 [gcc-4_5-branch revision
167585], GMP version 5.0.1, MPFR version 3.0.0-p3, MPC version 0.8.2
GGC heuristics: --param ggc-min-expand=97 --param ggc-min-heapsize=125809
Compiler executable checksum: 3bd6bad154f92415c6ab6c213479edc0
bug.cpp: In function ‘int main()’:
bug.cpp:9:25: internal compiler error: in process_init_constructor_array, at
cp/typeck2.c:1039
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugs.opensuse.org/> for instructions.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/51565] [4.4/4.5/4.6/4.7 Regression] fastcall in array of method pointers: internal compiler error
2011-12-15 11:06 [Bug c++/51565] New: fastcall in array of method pointers: internal compiler error arr at kent dot ac.uk
@ 2011-12-29 6:03 ` pinskia at gcc dot gnu.org
2012-01-04 13:44 ` [Bug c++/51565] " rguenth at gcc dot gnu.org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2011-12-29 6:03 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51565
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2011-12-29
Component|c++ |target
Known to work| |4.3.5
Target Milestone|--- |4.4.7
Summary|fastcall in array of method |[4.4/4.5/4.6/4.7
|pointers: internal compiler |Regression] fastcall in
|error |array of method pointers:
| |internal compiler error
Ever Confirmed|0 |1
Known to fail| |4.4.5, 4.7.0
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-12-29 06:00:53 UTC ---
Confirmed.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/51565] [4.4/4.5/4.6/4.7 Regression] fastcall in array of method pointers: internal compiler error
2011-12-15 11:06 [Bug c++/51565] New: fastcall in array of method pointers: internal compiler error arr at kent dot ac.uk
2011-12-29 6:03 ` [Bug target/51565] [4.4/4.5/4.6/4.7 Regression] " pinskia at gcc dot gnu.org
@ 2012-01-04 13:44 ` rguenth at gcc dot gnu.org
2012-01-11 20:51 ` jason at gcc dot gnu.org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-01-04 13:44 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51565
Richard Guenther <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target| |i?86-*-*
Priority|P3 |P2
Component|target |c++
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/51565] [4.4/4.5/4.6/4.7 Regression] fastcall in array of method pointers: internal compiler error
2011-12-15 11:06 [Bug c++/51565] New: fastcall in array of method pointers: internal compiler error arr at kent dot ac.uk
2011-12-29 6:03 ` [Bug target/51565] [4.4/4.5/4.6/4.7 Regression] " pinskia at gcc dot gnu.org
2012-01-04 13:44 ` [Bug c++/51565] " rguenth at gcc dot gnu.org
@ 2012-01-11 20:51 ` jason at gcc dot gnu.org
2012-01-12 2:31 ` jason at gcc dot gnu.org
2012-01-12 2:33 ` jason at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: jason at gcc dot gnu.org @ 2012-01-11 20:51 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51565
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
CC| |jason at gcc dot gnu.org
AssignedTo|unassigned at gcc dot |jason at gcc dot gnu.org
|gnu.org |
--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> 2012-01-11 20:51:01 UTC ---
4.3 generated wrong code for this testcase, which you can see by extending it a
bit:
extern "C" void abort();
int i;
struct Foo {
__attribute__((fastcall))
void fee(int j) { i = j; }
};
int main()
{
typedef void (Foo::*FP)(int);
FP fp[] = {&Foo::fee};
(Foo().*(fp[0]))(42);
if (i != 42)
abort();
}
This is true back to version 3.4. Before that, we just ignored the attribute.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/51565] [4.4/4.5/4.6/4.7 Regression] fastcall in array of method pointers: internal compiler error
2011-12-15 11:06 [Bug c++/51565] New: fastcall in array of method pointers: internal compiler error arr at kent dot ac.uk
` (2 preceding siblings ...)
2012-01-11 20:51 ` jason at gcc dot gnu.org
@ 2012-01-12 2:31 ` jason at gcc dot gnu.org
2012-01-12 2:33 ` jason at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: jason at gcc dot gnu.org @ 2012-01-12 2:31 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51565
--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> 2012-01-12 02:30:53 UTC ---
Author: jason
Date: Thu Jan 12 02:30:47 2012
New Revision: 183120
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=183120
Log:
PR c++/51565
* call.c (standard_conversion): For ptrmemfuncs, compare the
static_fn_types.
Added:
trunk/gcc/testsuite/g++.dg/ext/attrib42.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/call.c
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/51565] [4.4/4.5/4.6/4.7 Regression] fastcall in array of method pointers: internal compiler error
2011-12-15 11:06 [Bug c++/51565] New: fastcall in array of method pointers: internal compiler error arr at kent dot ac.uk
` (3 preceding siblings ...)
2012-01-12 2:31 ` jason at gcc dot gnu.org
@ 2012-01-12 2:33 ` jason at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: jason at gcc dot gnu.org @ 2012-01-12 2:33 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51565
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-invalid-code
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|4.4.7 |4.7.0
--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> 2012-01-12 02:33:03 UTC ---
Fixed for 4.7. Not backporting invalid code patches.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2012-01-12 2:33 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-15 11:06 [Bug c++/51565] New: fastcall in array of method pointers: internal compiler error arr at kent dot ac.uk
2011-12-29 6:03 ` [Bug target/51565] [4.4/4.5/4.6/4.7 Regression] " pinskia at gcc dot gnu.org
2012-01-04 13:44 ` [Bug c++/51565] " rguenth at gcc dot gnu.org
2012-01-11 20:51 ` jason at gcc dot gnu.org
2012-01-12 2:31 ` jason at gcc dot gnu.org
2012-01-12 2:33 ` jason 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).