public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/65721] New: Internal compiler error segmentation fault
@ 2015-04-09 16:42 t.keck at online dot de
2015-04-09 17:22 ` [Bug c++/65721] [4.8/4.9/5 Regression] " jakub at gcc dot gnu.org
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: t.keck at online dot de @ 2015-04-09 16:42 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65721
Bug ID: 65721
Summary: Internal compiler error segmentation fault
Product: gcc
Version: 4.8.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: t.keck at online dot de
Following code produces a segmentation fault with gcc 4.8.2.
gcc 4.7.2 and 4.6.3 reject the code (which is probably invalid c++), without
segmentation code.
tkeck@ekplx12:~$ cat test.cpp
template<typename T>
class A {
public:
typedef T D;
};
template<typename X>
class B : public A<X> {
using typename B::D; // Triggers segfault and probably invalid C++
//using typename A<X>::D; // Works fine and probably valid C++
public:
D echo(D x) {
return x;
}
};
int main() {
B<int> b;
}
tkeck@ekplx12:~$ g++ test.cpp
g++: internal compiler error: Segmentation fault (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.8/README.Bugs> for instructions.
tkeck@ekplx12:~$ g++ -v
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.8/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.8.2-19ubuntu1'
--with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs
--enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr
--program-suffix=-4.8 --enable-shared --enable-linker-build-id
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
--with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls
--with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug
--enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libmudflap
--enable-plugin --with-system-zlib --disable-browser-plugin
--enable-java-awt=gtk --enable-gtk-cairo
--with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64/jre --enable-java-home
--with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-amd64
--with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-amd64
--with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar
--enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686
--with-abi=m64 --with-multilib-list=m32,m64,mx32 --with-tune=generic
--enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu
--target=x86_64-linux-gnu
Thread model: posix
gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1)
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/65721] [4.8/4.9/5 Regression] Internal compiler error segmentation fault
2015-04-09 16:42 [Bug c++/65721] New: Internal compiler error segmentation fault t.keck at online dot de
@ 2015-04-09 17:22 ` jakub at gcc dot gnu.org
2015-04-10 7:43 ` rguenth at gcc dot gnu.org
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-04-09 17:22 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65721
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2015-04-09
CC| |jakub at gcc dot gnu.org
Summary|Internal compiler error |[4.8/4.9/5 Regression]
|segmentation fault |Internal compiler error
| |segmentation fault
Ever confirmed|0 |1
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
ICE started with r207407.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/65721] [4.8/4.9/5 Regression] Internal compiler error segmentation fault
2015-04-09 16:42 [Bug c++/65721] New: Internal compiler error segmentation fault t.keck at online dot de
2015-04-09 17:22 ` [Bug c++/65721] [4.8/4.9/5 Regression] " jakub at gcc dot gnu.org
@ 2015-04-10 7:43 ` rguenth at gcc dot gnu.org
2015-04-10 9:47 ` mpolacek at gcc dot gnu.org
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2015-04-10 7:43 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65721
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-valid-code
Priority|P3 |P2
Target Milestone|--- |4.8.5
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/65721] [4.8/4.9/5 Regression] Internal compiler error segmentation fault
2015-04-09 16:42 [Bug c++/65721] New: Internal compiler error segmentation fault t.keck at online dot de
2015-04-09 17:22 ` [Bug c++/65721] [4.8/4.9/5 Regression] " jakub at gcc dot gnu.org
2015-04-10 7:43 ` rguenth at gcc dot gnu.org
@ 2015-04-10 9:47 ` mpolacek at gcc dot gnu.org
2015-04-11 14:42 ` jason at gcc dot gnu.org
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2015-04-10 9:47 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65721
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mpolacek at gcc dot gnu.org
--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
This is an infinite loop: strip_using_decl calls make_typename_type that calls
strip_using_decl with the same type...
The code is IMHO invalid.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/65721] [4.8/4.9/5 Regression] Internal compiler error segmentation fault
2015-04-09 16:42 [Bug c++/65721] New: Internal compiler error segmentation fault t.keck at online dot de
` (2 preceding siblings ...)
2015-04-10 9:47 ` mpolacek at gcc dot gnu.org
@ 2015-04-11 14:42 ` jason at gcc dot gnu.org
2015-04-14 15:30 ` [Bug c++/65721] [4.8/4.9/5/6 " jason at gcc dot gnu.org
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: jason at gcc dot gnu.org @ 2015-04-11 14:42 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65721
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords|ice-on-valid-code |ice-on-invalid-code
Status|NEW |ASSIGNED
Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/65721] [4.8/4.9/5/6 Regression] Internal compiler error segmentation fault
2015-04-09 16:42 [Bug c++/65721] New: Internal compiler error segmentation fault t.keck at online dot de
` (3 preceding siblings ...)
2015-04-11 14:42 ` jason at gcc dot gnu.org
@ 2015-04-14 15:30 ` jason at gcc dot gnu.org
2015-04-22 20:53 ` jason at gcc dot gnu.org
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: jason at gcc dot gnu.org @ 2015-04-14 15:30 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65721
--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Tue Apr 14 15:29:34 2015
New Revision: 222096
URL: https://gcc.gnu.org/viewcvs?rev=222096&root=gcc&view=rev
Log:
PR c++/65721
* name-lookup.c (do_class_using_decl): Complain about specifying
the current class even if there are dependent bases.
Added:
trunk/gcc/testsuite/g++.dg/lookup/using55.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/name-lookup.c
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/65721] [4.8/4.9/5/6 Regression] Internal compiler error segmentation fault
2015-04-09 16:42 [Bug c++/65721] New: Internal compiler error segmentation fault t.keck at online dot de
` (4 preceding siblings ...)
2015-04-14 15:30 ` [Bug c++/65721] [4.8/4.9/5/6 " jason at gcc dot gnu.org
@ 2015-04-22 20:53 ` jason at gcc dot gnu.org
2015-04-23 13:20 ` jason at gcc dot gnu.org
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: jason at gcc dot gnu.org @ 2015-04-22 20:53 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65721
--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Wed Apr 22 20:52:57 2015
New Revision: 222338
URL: https://gcc.gnu.org/viewcvs?rev=222338&root=gcc&view=rev
Log:
PR c++/65721
* name-lookup.c (do_class_using_decl): Complain about specifying
the current class even if there are dependent bases.
Added:
branches/gcc-5-branch/gcc/testsuite/g++.dg/lookup/using55.C
Modified:
branches/gcc-5-branch/gcc/cp/ChangeLog
branches/gcc-5-branch/gcc/cp/name-lookup.c
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/65721] [4.8/4.9/5/6 Regression] Internal compiler error segmentation fault
2015-04-09 16:42 [Bug c++/65721] New: Internal compiler error segmentation fault t.keck at online dot de
` (5 preceding siblings ...)
2015-04-22 20:53 ` jason at gcc dot gnu.org
@ 2015-04-23 13:20 ` jason at gcc dot gnu.org
2015-04-23 13:21 ` jason at gcc dot gnu.org
2015-04-23 13:24 ` jason at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: jason at gcc dot gnu.org @ 2015-04-23 13:20 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65721
--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Thu Apr 23 13:20:08 2015
New Revision: 222363
URL: https://gcc.gnu.org/viewcvs?rev=222363&root=gcc&view=rev
Log:
PR c++/65721
* name-lookup.c (do_class_using_decl): Complain about specifying
the current class even if there are dependent bases.
Added:
branches/gcc-4_8-branch/gcc/testsuite/g++.dg/lookup/using55.C
Modified:
branches/gcc-4_8-branch/gcc/cp/ChangeLog
branches/gcc-4_8-branch/gcc/cp/name-lookup.c
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/65721] [4.8/4.9/5/6 Regression] Internal compiler error segmentation fault
2015-04-09 16:42 [Bug c++/65721] New: Internal compiler error segmentation fault t.keck at online dot de
` (6 preceding siblings ...)
2015-04-23 13:20 ` jason at gcc dot gnu.org
@ 2015-04-23 13:21 ` jason at gcc dot gnu.org
2015-04-23 13:24 ` jason at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: jason at gcc dot gnu.org @ 2015-04-23 13:21 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65721
--- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Thu Apr 23 13:21:11 2015
New Revision: 222366
URL: https://gcc.gnu.org/viewcvs?rev=222366&root=gcc&view=rev
Log:
PR c++/65721
* name-lookup.c (do_class_using_decl): Complain about specifying
the current class even if there are dependent bases.
Added:
branches/gcc-4_9-branch/gcc/testsuite/g++.dg/lookup/using55.C
Modified:
branches/gcc-4_9-branch/gcc/cp/ChangeLog
branches/gcc-4_9-branch/gcc/cp/name-lookup.c
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/65721] [4.8/4.9/5/6 Regression] Internal compiler error segmentation fault
2015-04-09 16:42 [Bug c++/65721] New: Internal compiler error segmentation fault t.keck at online dot de
` (7 preceding siblings ...)
2015-04-23 13:21 ` jason at gcc dot gnu.org
@ 2015-04-23 13:24 ` jason at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: jason at gcc dot gnu.org @ 2015-04-23 13:24 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65721
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #7 from Jason Merrill <jason at gcc dot gnu.org> ---
Fixed for 4.8.5/4.9.3/5.2/6.
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2015-04-23 13:24 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-09 16:42 [Bug c++/65721] New: Internal compiler error segmentation fault t.keck at online dot de
2015-04-09 17:22 ` [Bug c++/65721] [4.8/4.9/5 Regression] " jakub at gcc dot gnu.org
2015-04-10 7:43 ` rguenth at gcc dot gnu.org
2015-04-10 9:47 ` mpolacek at gcc dot gnu.org
2015-04-11 14:42 ` jason at gcc dot gnu.org
2015-04-14 15:30 ` [Bug c++/65721] [4.8/4.9/5/6 " jason at gcc dot gnu.org
2015-04-22 20:53 ` jason at gcc dot gnu.org
2015-04-23 13:20 ` jason at gcc dot gnu.org
2015-04-23 13:21 ` jason at gcc dot gnu.org
2015-04-23 13:24 ` 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).