public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/51714] New: internal compiler error: Segmentation fault with -std=c++11
@ 2011-12-30 15:37 hyounes at google dot com
2011-12-31 1:46 ` [Bug c++/51714] [4.7 Regression] " paolo.carlini at oracle dot com
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: hyounes at google dot com @ 2011-12-30 15:37 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51714
Bug #: 51714
Summary: internal compiler error: Segmentation fault with
-std=c++11
Classification: Unclassified
Product: gcc
Version: 4.7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: hyounes@google.com
Created attachment 26205
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26205
Output from /usr/local/google/home/hyounes/gcc-svn-inst/bin/g++ -std=c++11 -c
dvlog.cc -save-temps
Command triggering bug:
/usr/local/google/home/hyounes/gcc-svn-inst/bin/g++ -v -std=c++11 -c dvlog.cc
-save-temps
(NOTE, the bug is not triggered if -std=c++11 is left out)
Compiler output:
Using built-in specs.
COLLECT_GCC=/usr/local/google/home/hyounes/gcc-svn-inst/bin/g++
COLLECT_LTO_WRAPPER=/usr/local/google/home/hyounes/gcc-svn-inst/libexec/gcc/x86_64-unknown-linux-gnu/4.7.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: /usr/local/google/home/hyounes/gcc-svn/configure
--prefix=/usr/local/google/home/hyounes/gcc-svn-inst : (reconfigured)
/usr/local/google/home/hyounes/gcc-svn/configure
--prefix=/usr/local/google/home/hyounes/gcc-svn-inst
Thread model: posix
gcc version 4.7.0 20111229 (experimental) (GCC)
COLLECT_GCC_OPTIONS='-v' '-std=c++11' '-c' '-save-temps' '-shared-libgcc'
'-mtune=generic' '-march=x86-64'
/usr/local/google/home/hyounes/gcc-svn-inst/libexec/gcc/x86_64-unknown-linux-gnu/4.7.0/cc1plus
-E -quiet -v -D_GNU_SOURCE dvlog.cc -mtune=generic -march=x86-64 -std=c++11
-fpch-preprocess -o dvlog.ii
ignoring nonexistent directory
"/usr/local/google/home/hyounes/gcc-svn-inst/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../x86_64-unknown-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/local/google/home/hyounes/gcc-svn-inst/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0
/usr/local/google/home/hyounes/gcc-svn-inst/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0/x86_64-unknown-linux-gnu
/usr/local/google/home/hyounes/gcc-svn-inst/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/../../../../include/c++/4.7.0/backward
/usr/local/google/home/hyounes/gcc-svn-inst/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/include
/usr/local/include
/usr/local/google/home/hyounes/gcc-svn-inst/include
/usr/local/google/home/hyounes/gcc-svn-inst/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/include-fixed
/usr/include
End of search list.
COLLECT_GCC_OPTIONS='-v' '-std=c++11' '-c' '-save-temps' '-shared-libgcc'
'-mtune=generic' '-march=x86-64'
/usr/local/google/home/hyounes/gcc-svn-inst/libexec/gcc/x86_64-unknown-linux-gnu/4.7.0/cc1plus
-fpreprocessed dvlog.ii -quiet -dumpbase dvlog.cc -mtune=generic -march=x86-64
-auxbase dvlog -std=c++11 -version -o dvlog.s
GNU C++ (GCC) version 4.7.0 20111229 (experimental) (x86_64-unknown-linux-gnu)
compiled by GNU C version 4.7.0 20111229 (experimental), GMP version 4.3.2,
MPFR version 2.4.2-p1, MPC version 0.8.1
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
GNU C++ (GCC) version 4.7.0 20111229 (experimental) (x86_64-unknown-linux-gnu)
compiled by GNU C version 4.7.0 20111229 (experimental), GMP version 4.3.2,
MPFR version 2.4.2-p1, MPC version 0.8.1
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: 10d42f4b16e2234d346a8379f60d056c
dvlog.cc: In function \u2018void Foo()\u2019:
dvlog.cc:31:34: 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] 10+ messages in thread
* [Bug c++/51714] [4.7 Regression] internal compiler error: Segmentation fault with -std=c++11
2011-12-30 15:37 [Bug c++/51714] New: internal compiler error: Segmentation fault with -std=c++11 hyounes at google dot com
@ 2011-12-31 1:46 ` paolo.carlini at oracle dot com
2011-12-31 2:06 ` paolo.carlini at oracle dot com
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-12-31 1:46 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51714
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2011-12-31
Summary|internal compiler error: |[4.7 Regression] internal
|Segmentation fault with |compiler error:
|-std=c++11 |Segmentation fault with
| |-std=c++11
Ever Confirmed|0 |1
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/51714] [4.7 Regression] internal compiler error: Segmentation fault with -std=c++11
2011-12-30 15:37 [Bug c++/51714] New: internal compiler error: Segmentation fault with -std=c++11 hyounes at google dot com
2011-12-31 1:46 ` [Bug c++/51714] [4.7 Regression] " paolo.carlini at oracle dot com
@ 2011-12-31 2:06 ` paolo.carlini at oracle dot com
2011-12-31 3:17 ` paolo.carlini at oracle dot com
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-12-31 2:06 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51714
--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-12-31 01:55:04 UTC ---
This is enough:
template <typename T>
void Foo()
{
true || !__extension__ ({ int verbose = 2; verbose <= 3; });
}
int main()
{
Foo<int>();
}
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/51714] [4.7 Regression] internal compiler error: Segmentation fault with -std=c++11
2011-12-30 15:37 [Bug c++/51714] New: internal compiler error: Segmentation fault with -std=c++11 hyounes at google dot com
2011-12-31 1:46 ` [Bug c++/51714] [4.7 Regression] " paolo.carlini at oracle dot com
2011-12-31 2:06 ` paolo.carlini at oracle dot com
@ 2011-12-31 3:17 ` paolo.carlini at oracle dot com
2011-12-31 8:19 ` pinskia at gcc dot gnu.org
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-12-31 3:17 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51714
--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-12-31 02:06:08 UTC ---
When tsubst_decl calls register_local_specialization the local_specializations
global is null.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/51714] [4.7 Regression] internal compiler error: Segmentation fault with -std=c++11
2011-12-30 15:37 [Bug c++/51714] New: internal compiler error: Segmentation fault with -std=c++11 hyounes at google dot com
` (2 preceding siblings ...)
2011-12-31 3:17 ` paolo.carlini at oracle dot com
@ 2011-12-31 8:19 ` pinskia at gcc dot gnu.org
2011-12-31 13:43 ` jakub at gcc dot gnu.org
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu.org @ 2011-12-31 8:19 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51714
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-valid-code
Target Milestone|--- |4.7.0
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/51714] [4.7 Regression] internal compiler error: Segmentation fault with -std=c++11
2011-12-30 15:37 [Bug c++/51714] New: internal compiler error: Segmentation fault with -std=c++11 hyounes at google dot com
` (3 preceding siblings ...)
2011-12-31 8:19 ` pinskia at gcc dot gnu.org
@ 2011-12-31 13:43 ` jakub at gcc dot gnu.org
2012-01-03 8:38 ` [Bug c++/51714] [4.6/4.7 " jakub at gcc dot gnu.org
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-12-31 13:43 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51714
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-12-31 12:23:05 UTC ---
Started already with
http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=166167
so no idea why it doesn't reproduce with G++ 4.6 either.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/51714] [4.6/4.7 Regression] internal compiler error: Segmentation fault with -std=c++11
2011-12-30 15:37 [Bug c++/51714] New: internal compiler error: Segmentation fault with -std=c++11 hyounes at google dot com
` (4 preceding siblings ...)
2011-12-31 13:43 ` jakub at gcc dot gnu.org
@ 2012-01-03 8:38 ` jakub at gcc dot gnu.org
2012-01-03 8:39 ` jakub at gcc dot gnu.org
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-01-03 8:38 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51714
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P4
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/51714] [4.6/4.7 Regression] internal compiler error: Segmentation fault with -std=c++11
2011-12-30 15:37 [Bug c++/51714] New: internal compiler error: Segmentation fault with -std=c++11 hyounes at google dot com
` (5 preceding siblings ...)
2012-01-03 8:38 ` [Bug c++/51714] [4.6/4.7 " jakub at gcc dot gnu.org
@ 2012-01-03 8:39 ` jakub at gcc dot gnu.org
2012-01-13 5:07 ` jason at gcc dot gnu.org
2012-01-13 5:07 ` jason at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu.org @ 2012-01-03 8:39 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51714
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-checking
CC| |jason at gcc dot gnu.org
Summary|[4.7 Regression] internal |[4.6/4.7 Regression]
|compiler error: |internal compiler error:
|Segmentation fault with |Segmentation fault with
|-std=c++11 |-std=c++11
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-01-03 08:37:14 UTC ---
Ah, it is a checking-only ICE. It ICEs during:
20115 #ifdef ENABLE_CHECKING
20116 /* Try to get a constant value for all non-type-dependent
expressions in
20117 order to expose bugs in *_dependent_expression_p and constexpr.
*/
20118 if (cxx_dialect >= cxx0x)
20119 maybe_constant_value (fold_non_dependent_expr_sfinae (expr,
tf_none));
20120 #endif
which in turn calls tsubst_decl on the verbose variable, while not called from
instantiate_decl of the containing function.
So local_specializations is NULL, retrieve_local_specialization does nothing
and
finally register_local_specialization segfaults, because it expects
local_specializations is non-NULL.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/51714] [4.6/4.7 Regression] internal compiler error: Segmentation fault with -std=c++11
2011-12-30 15:37 [Bug c++/51714] New: internal compiler error: Segmentation fault with -std=c++11 hyounes at google dot com
` (7 preceding siblings ...)
2012-01-13 5:07 ` jason at gcc dot gnu.org
@ 2012-01-13 5:07 ` jason at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: jason at gcc dot gnu.org @ 2012-01-13 5:07 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51714
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
--- Comment #6 from Jason Merrill <jason at gcc dot gnu.org> 2012-01-13 05:06:15 UTC ---
Fixed.
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug c++/51714] [4.6/4.7 Regression] internal compiler error: Segmentation fault with -std=c++11
2011-12-30 15:37 [Bug c++/51714] New: internal compiler error: Segmentation fault with -std=c++11 hyounes at google dot com
` (6 preceding siblings ...)
2012-01-03 8:39 ` jakub at gcc dot gnu.org
@ 2012-01-13 5:07 ` jason at gcc dot gnu.org
2012-01-13 5:07 ` jason at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: jason at gcc dot gnu.org @ 2012-01-13 5:07 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51714
--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> 2012-01-13 05:05:54 UTC ---
Author: jason
Date: Fri Jan 13 05:05:46 2012
New Revision: 183149
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=183149
Log:
PR c++/51714
* pt.c (value_dependent_expression_p): Treat STMT_EXPR as
value-dependent.
Added:
trunk/gcc/testsuite/g++.dg/ext/stmtexpr14.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/pt.c
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2012-01-13 5:07 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-30 15:37 [Bug c++/51714] New: internal compiler error: Segmentation fault with -std=c++11 hyounes at google dot com
2011-12-31 1:46 ` [Bug c++/51714] [4.7 Regression] " paolo.carlini at oracle dot com
2011-12-31 2:06 ` paolo.carlini at oracle dot com
2011-12-31 3:17 ` paolo.carlini at oracle dot com
2011-12-31 8:19 ` pinskia at gcc dot gnu.org
2011-12-31 13:43 ` jakub at gcc dot gnu.org
2012-01-03 8:38 ` [Bug c++/51714] [4.6/4.7 " jakub at gcc dot gnu.org
2012-01-03 8:39 ` jakub at gcc dot gnu.org
2012-01-13 5:07 ` jason at gcc dot gnu.org
2012-01-13 5:07 ` 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).