public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/59707] New: [4.8.2] Crash when using std::map with template class
@ 2014-01-06 23:43 martin.sandsmark at kde dot org
2014-01-07 9:44 ` [Bug c++/59707] " redi at gcc dot gnu.org
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: martin.sandsmark at kde dot org @ 2014-01-06 23:43 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59707
Bug ID: 59707
Summary: [4.8.2] Crash when using std::map with template class
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: martin.sandsmark at kde dot org
Created attachment 31761
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31761&action=edit
Crashing source
Using built-in specs.
COLLECT_GCC=/usr/bin/gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8.2/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: /build/gcc-multilib/src/gcc-4.8-20131219/configure
--prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man
--infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/
--enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared
--enable-threads=posix --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch
--disable-libssp --enable-gnu-unique-object --enable-linker-build-id
--enable-cloog-backend=isl --disable-cloog-version-check --enable-lto
--enable-plugin --enable-install-libiberty --with-linker-hash-style=gnu
--enable-multilib --disable-werror --enable-checking=release
Thread model: posix
I'll just inline it here, just compile with "g++ filename.cpp" to crash:
#include <map>
struct T {
template<class D> operator D*() const;
};
std::map<T, int> m;
void f(T x) {
m[x];
}
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/59707] Crash when using std::map with template class
2014-01-06 23:43 [Bug c++/59707] New: [4.8.2] Crash when using std::map with template class martin.sandsmark at kde dot org
@ 2014-01-07 9:44 ` redi at gcc dot gnu.org
2014-01-07 10:21 ` [Bug c++/59707] [4.7/4.8/4.9 Regression] " jakub at gcc dot gnu.org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: redi at gcc dot gnu.org @ 2014-01-07 9:44 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59707
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-invalid-code
Status|UNCONFIRMED |NEW
Last reconfirmed| |2014-01-07
Version|unknown |4.8.2
Summary|[4.8.2] Crash when using |Crash when using std::map
|std::map with template |with template class
|class |
Ever confirmed|0 |1
Known to fail| |4.7.4, 4.8.2, 4.9.0
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Reduced:
struct T {
template<class D> operator D*() const;
};
void f(T x) {
x < x;
}
4.6 didn't ICE but incorrectly compiled the code
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/59707] [4.7/4.8/4.9 Regression] Crash when using std::map with template class
2014-01-06 23:43 [Bug c++/59707] New: [4.8.2] Crash when using std::map with template class martin.sandsmark at kde dot org
2014-01-07 9:44 ` [Bug c++/59707] " redi at gcc dot gnu.org
@ 2014-01-07 10:21 ` jakub at gcc dot gnu.org
2014-01-29 22:08 ` jason at gcc dot gnu.org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-01-07 10:21 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59707
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
Target Milestone|--- |4.7.4
Summary|Crash when using std::map |[4.7/4.8/4.9 Regression]
|with template class |Crash when using std::map
| |with template class
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
The ICE started with r183221.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/59707] [4.7/4.8/4.9 Regression] Crash when using std::map with template class
2014-01-06 23:43 [Bug c++/59707] New: [4.8.2] Crash when using std::map with template class martin.sandsmark at kde dot org
2014-01-07 9:44 ` [Bug c++/59707] " redi at gcc dot gnu.org
2014-01-07 10:21 ` [Bug c++/59707] [4.7/4.8/4.9 Regression] " jakub at gcc dot gnu.org
@ 2014-01-29 22:08 ` jason at gcc dot gnu.org
2014-01-30 5:29 ` jason at gcc dot gnu.org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: jason at gcc dot gnu.org @ 2014-01-29 22:08 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59707
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
CC| |jason at gcc dot gnu.org
Assignee|unassigned at gcc dot gnu.org |jason at gcc dot gnu.org
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/59707] [4.7/4.8/4.9 Regression] Crash when using std::map with template class
2014-01-06 23:43 [Bug c++/59707] New: [4.8.2] Crash when using std::map with template class martin.sandsmark at kde dot org
` (2 preceding siblings ...)
2014-01-29 22:08 ` jason at gcc dot gnu.org
@ 2014-01-30 5:29 ` jason at gcc dot gnu.org
2014-06-12 13:41 ` [Bug c++/59707] [4.7/4.8 " rguenth at gcc dot gnu.org
2014-08-01 18:50 ` [Bug c++/59707] [4.8 " jason at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: jason at gcc dot gnu.org @ 2014-01-30 5:29 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59707
--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Thu Jan 30 05:28:52 2014
New Revision: 207295
URL: http://gcc.gnu.org/viewcvs?rev=207295&root=gcc&view=rev
Log:
PR c++/59707
* call.c (add_builtin_candidate): Catch dependent types.
Added:
trunk/gcc/testsuite/g++.dg/template/operator12.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/call.c
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/59707] [4.7/4.8 Regression] Crash when using std::map with template class
2014-01-06 23:43 [Bug c++/59707] New: [4.8.2] Crash when using std::map with template class martin.sandsmark at kde dot org
` (3 preceding siblings ...)
2014-01-30 5:29 ` jason at gcc dot gnu.org
@ 2014-06-12 13:41 ` rguenth at gcc dot gnu.org
2014-08-01 18:50 ` [Bug c++/59707] [4.8 " jason at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2014-06-12 13:41 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59707
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|4.7.4 |4.8.4
--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
The 4.7 branch is being closed, moving target milestone to 4.8.4.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/59707] [4.8 Regression] Crash when using std::map with template class
2014-01-06 23:43 [Bug c++/59707] New: [4.8.2] Crash when using std::map with template class martin.sandsmark at kde dot org
` (4 preceding siblings ...)
2014-06-12 13:41 ` [Bug c++/59707] [4.7/4.8 " rguenth at gcc dot gnu.org
@ 2014-08-01 18:50 ` jason at gcc dot gnu.org
5 siblings, 0 replies; 7+ messages in thread
From: jason at gcc dot gnu.org @ 2014-08-01 18:50 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=59707
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
Target Milestone|4.8.4 |4.9.0
--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> ---
Fixed in 4.9. I'm reluctant to backport fixes for invalid-code bugs.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2014-08-01 18:50 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-06 23:43 [Bug c++/59707] New: [4.8.2] Crash when using std::map with template class martin.sandsmark at kde dot org
2014-01-07 9:44 ` [Bug c++/59707] " redi at gcc dot gnu.org
2014-01-07 10:21 ` [Bug c++/59707] [4.7/4.8/4.9 Regression] " jakub at gcc dot gnu.org
2014-01-29 22:08 ` jason at gcc dot gnu.org
2014-01-30 5:29 ` jason at gcc dot gnu.org
2014-06-12 13:41 ` [Bug c++/59707] [4.7/4.8 " rguenth at gcc dot gnu.org
2014-08-01 18:50 ` [Bug c++/59707] [4.8 " 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).