public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/53893] New: segfault with invalid c++ code
@ 2012-07-08 11:21 pipping at exherbo dot org
2012-07-08 11:22 ` [Bug c++/53893] " pipping at exherbo dot org
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: pipping at exherbo dot org @ 2012-07-08 11:21 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53893
Bug #: 53893
Summary: segfault with invalid c++ code
Classification: Unclassified
Product: gcc
Version: 4.7.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: pipping@exherbo.org
The following piece of invalid C++0x code yields
nannormtest.ii: In member function ‘double std::DenseVector::infinity_norm()
const’:
nannormtest.ii:8:80: internal compiler error: Segmentation fault
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/53893] segfault with invalid c++ code
2012-07-08 11:21 [Bug c++/53893] New: segfault with invalid c++ code pipping at exherbo dot org
@ 2012-07-08 11:22 ` pipping at exherbo dot org
2012-07-08 11:43 ` pipping at exherbo dot org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: pipping at exherbo dot org @ 2012-07-08 11:22 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53893
--- Comment #1 from Elias Pipping <pipping at exherbo dot org> 2012-07-08 11:21:57 UTC ---
Created attachment 27762
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27762
test case
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/53893] segfault with invalid c++ code
2012-07-08 11:21 [Bug c++/53893] New: segfault with invalid c++ code pipping at exherbo dot org
2012-07-08 11:22 ` [Bug c++/53893] " pipping at exherbo dot org
@ 2012-07-08 11:43 ` pipping at exherbo dot org
2012-07-08 12:01 ` redi at gcc dot gnu.org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: pipping at exherbo dot org @ 2012-07-08 11:43 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53893
--- Comment #2 from Elias Pipping <pipping at exherbo dot org> 2012-07-08 11:43:11 UTC ---
% g++-4.7 -v
Using built-in specs.
COLLECT_GCC=g++-4.7
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/4.7.1/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with:
/var/tmp/paludis/build/sys-devel-gcc-4.7.1/work/gcc-4.7.1/configure
--prefix=/usr --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu
--mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share
--sysconfdir=/etc --localstatedir=/var/lib --disable-dependency-tracking
--disable-silent-rules --enable-fast-install --libdir=/usr/lib64
--disable-multilib --libdir=/usr/lib64 --enable-clocale=gnu
--enable-languages=c++,fortran --enable-libstdcxx-pch=yes --enable-nls
--program-suffix=-4.7 --with-libelf --with-pkgversion='Exherbo gcc-4.7.1'
--with-system-zlib --disable-graphite --disable-cloog-backend --without-cloog
--without-ppl --disable-libgomp --disable-libssp
Thread model: posix
gcc version 4.7.1 (Exherbo gcc-4.7.1)
%
% g++-4.7 -std=c++0x nannormtest.ii
nannormtest.ii: In member function ‘double std::DenseVector::infinity_norm()
const’:
nannormtest.ii:8:80: internal compiler error: Segmentation fault
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] 7+ messages in thread
* [Bug c++/53893] segfault with invalid c++ code
2012-07-08 11:21 [Bug c++/53893] New: segfault with invalid c++ code pipping at exherbo dot org
2012-07-08 11:22 ` [Bug c++/53893] " pipping at exherbo dot org
2012-07-08 11:43 ` pipping at exherbo dot org
@ 2012-07-08 12:01 ` redi at gcc dot gnu.org
2012-07-08 14:04 ` pipping at exherbo dot org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: redi at gcc dot gnu.org @ 2012-07-08 12:01 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53893
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-invalid-code
Status|UNCONFIRMED |NEW
Last reconfirmed| |2012-07-08
Ever Confirmed|0 |1
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> 2012-07-08 12:01:08 UTC ---
Confirmed, trunk gives this instead of a segfault:
inv.cc: In member function ‘double std::DenseVector::infinity_norm() const’:
inv.cc:8:80: internal compiler error: tree check: expected tree that contains
‘decl minimal’ structure, have ‘nop_expr’ in decl_linkage, at cp/tree.c:3198
return infinity_norm_TEMPLATE<( double (*)( double)) std::abs< double>
>();
^
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] 7+ messages in thread
* [Bug c++/53893] segfault with invalid c++ code
2012-07-08 11:21 [Bug c++/53893] New: segfault with invalid c++ code pipping at exherbo dot org
` (2 preceding siblings ...)
2012-07-08 12:01 ` redi at gcc dot gnu.org
@ 2012-07-08 14:04 ` pipping at exherbo dot org
2012-10-14 17:44 ` paolo.carlini at oracle dot com
2013-01-26 10:59 ` paolo.carlini at oracle dot com
5 siblings, 0 replies; 7+ messages in thread
From: pipping at exherbo dot org @ 2012-07-08 14:04 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53893
Elias Pipping <pipping at exherbo dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #27762|0 |1
is obsolete| |
--- Comment #4 from Elias Pipping <pipping at exherbo dot org> 2012-07-08 14:04:11 UTC ---
Created attachment 27764
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27764
test case
I've reduced it a bit and tried to get it closer to valid code.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/53893] segfault with invalid c++ code
2012-07-08 11:21 [Bug c++/53893] New: segfault with invalid c++ code pipping at exherbo dot org
` (3 preceding siblings ...)
2012-07-08 14:04 ` pipping at exherbo dot org
@ 2012-10-14 17:44 ` paolo.carlini at oracle dot com
2013-01-26 10:59 ` paolo.carlini at oracle dot com
5 siblings, 0 replies; 7+ messages in thread
From: paolo.carlini at oracle dot com @ 2012-10-14 17:44 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53893
--- Comment #5 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-10-14 17:44:37 UTC ---
Note: the code per-se isn't C++11, besides the trivial >>, the crash is ;) That
is, only happens with -std=c++11.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/53893] segfault with invalid c++ code
2012-07-08 11:21 [Bug c++/53893] New: segfault with invalid c++ code pipping at exherbo dot org
` (4 preceding siblings ...)
2012-10-14 17:44 ` paolo.carlini at oracle dot com
@ 2013-01-26 10:59 ` paolo.carlini at oracle dot com
5 siblings, 0 replies; 7+ messages in thread
From: paolo.carlini at oracle dot com @ 2013-01-26 10:59 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53893
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
--- Comment #6 from Paolo Carlini <paolo.carlini at oracle dot com> 2013-01-26 10:59:01 UTC ---
Dup.
*** This bug has been marked as a duplicate of bug 52819 ***
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2013-01-26 10:59 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-08 11:21 [Bug c++/53893] New: segfault with invalid c++ code pipping at exherbo dot org
2012-07-08 11:22 ` [Bug c++/53893] " pipping at exherbo dot org
2012-07-08 11:43 ` pipping at exherbo dot org
2012-07-08 12:01 ` redi at gcc dot gnu.org
2012-07-08 14:04 ` pipping at exherbo dot org
2012-10-14 17:44 ` paolo.carlini at oracle dot com
2013-01-26 10:59 ` paolo.carlini at oracle dot com
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).