public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/47206] New: [4.6 Regression] [C++0x] ICE: SIGSEGV in cp_tree_equal (tree.c:2150) with -fno-elide-constructors
@ 2011-01-07 11:49 zsojka at seznam dot cz
  2011-01-07 14:48 ` [Bug c++/47206] " hjl.tools at gmail dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: zsojka at seznam dot cz @ 2011-01-07 11:49 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47206

           Summary: [4.6 Regression] [C++0x] ICE: SIGSEGV in cp_tree_equal
                    (tree.c:2150) with -fno-elide-constructors
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: zsojka@seznam.cz


Created attachment 22922
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22922
reduced testcase

Compiler output:
$ gcc -std=c++0x -fno-elide-constructors pr47206.C
==13145== Invalid read of size 4
==13145==    at 0x64E833: cp_tree_equal (tree.c:2150)
==13145==    by 0x62B1C5: constexpr_call_equal (semantics.c:5696)
==13145==    by 0x11F2DD4: htab_find_slot_with_hash (hashtab.c:668)
==13145==    by 0x63C884: cxx_eval_constant_expression (semantics.c:5980)
==13145==    by 0x63DADA: cxx_eval_outermost_constant_expr (semantics.c:6995)
==13145==    by 0x63FD18: maybe_constant_value (semantics.c:7066)
==13145==    by 0x6151CD: expand_aggr_init_1 (init.c:1455)
==13145==    by 0x61A401: build_aggr_init (init.c:1358)
==13145==    by 0x53615E: cp_finish_decl (decl.c:5250)
==13145==    by 0x5E3FD5: cp_parser_init_declarator (parser.c:14722)
==13145==    by 0x5E987A: cp_parser_simple_declaration (parser.c:9689)
==13145==    by 0x5E9BE6: cp_parser_block_declaration (parser.c:9587)
==13145==    by 0x5EA6B0: cp_parser_declaration_statement (parser.c:9239)
==13145==    by 0x5CDAE4: cp_parser_statement (parser.c:8155)
==13145==    by 0x5CED45: cp_parser_statement_seq_opt (parser.c:8414)
==13145==    by 0x5CEE7B: cp_parser_compound_statement (parser.c:8368)
==13145==    by 0x5E28DB: cp_parser_ctor_initializer_opt_and_function_body
(parser.c:16371)
==13145==    by 0x5E3051: cp_parser_function_definition_after_declarator
(parser.c:19814)
==13145==    by 0x5D1413: cp_parser_type_specifier (parser.c:20396)
==13145==    by 0x5D24E7: cp_parser_decl_specifier_seq (parser.c:9969)
==13145==    by 0x5E97BA: cp_parser_simple_declaration (parser.c:9626)
==13145==    by 0x5E9BE6: cp_parser_block_declaration (parser.c:9587)
==13145==    by 0x5ED8F1: cp_parser_declaration (parser.c:9492)
==13145==    by 0x5EC419: cp_parser_declaration_seq_opt (parser.c:9378)
==13145==    by 0x5EDF68: c_parse_file (parser.c:3461)
==13145==    by 0x6C2194: c_common_parse_file (c-opts.c:1071)
==13145==    by 0xA24597: toplev_main (toplev.c:579)
==13145==    by 0x6369BBC: (below main) (in /lib64/libc-2.11.2.so)
==13145==  Address 0x4 is not stack'd, malloc'd or (recently) free'd
==13145== 
pr47206.C: In member function 'void S::f2()':
pr47206.C:9:15:   in constexpr expansion of 's.S::S((*(const S*)this))'
pr47206.C:9:15: 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.


Tested revisions:
r168552 - crash
r165699 - OK
4.5 r168062 - OK


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c++/47206] [4.6 Regression] [C++0x] ICE: SIGSEGV in cp_tree_equal (tree.c:2150) with -fno-elide-constructors
  2011-01-07 11:49 [Bug c++/47206] New: [4.6 Regression] [C++0x] ICE: SIGSEGV in cp_tree_equal (tree.c:2150) with -fno-elide-constructors zsojka at seznam dot cz
@ 2011-01-07 14:48 ` hjl.tools at gmail dot com
  2011-01-19 20:58 ` jakub at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: hjl.tools at gmail dot com @ 2011-01-07 14:48 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47206

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2011.01.07 14:38:19
                 CC|                            |jason at redhat dot com
   Target Milestone|---                         |4.6.0
     Ever Confirmed|0                           |1

--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> 2011-01-07 14:38:19 UTC ---
This is caused by revision 166167:

http://gcc.gnu.org/ml/gcc-cvs/2010-11/msg00053.html


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c++/47206] [4.6 Regression] [C++0x] ICE: SIGSEGV in cp_tree_equal (tree.c:2150) with -fno-elide-constructors
  2011-01-07 11:49 [Bug c++/47206] New: [4.6 Regression] [C++0x] ICE: SIGSEGV in cp_tree_equal (tree.c:2150) with -fno-elide-constructors zsojka at seznam dot cz
  2011-01-07 14:48 ` [Bug c++/47206] " hjl.tools at gmail dot com
@ 2011-01-19 20:58 ` jakub at gcc dot gnu.org
  2011-01-26 10:13 ` dodji at gcc dot gnu.org
  2011-01-26 10:14 ` dodji at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-01-19 20:58 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47206

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P1
                 CC|                            |jakub at gcc dot gnu.org


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c++/47206] [4.6 Regression] [C++0x] ICE: SIGSEGV in cp_tree_equal (tree.c:2150) with -fno-elide-constructors
  2011-01-07 11:49 [Bug c++/47206] New: [4.6 Regression] [C++0x] ICE: SIGSEGV in cp_tree_equal (tree.c:2150) with -fno-elide-constructors zsojka at seznam dot cz
  2011-01-07 14:48 ` [Bug c++/47206] " hjl.tools at gmail dot com
  2011-01-19 20:58 ` jakub at gcc dot gnu.org
@ 2011-01-26 10:13 ` dodji at gcc dot gnu.org
  2011-01-26 10:14 ` dodji at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: dodji at gcc dot gnu.org @ 2011-01-26 10:13 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47206

Dodji Seketeli <dodji at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dodji at gcc dot gnu.org

--- Comment #2 from Dodji Seketeli <dodji at gcc dot gnu.org> 2011-01-26 09:53:30 UTC ---
I believe this is the same issue as PR c++/47041. That other bug got
fixed on trunk and this testcase pass on trunk (4.6) as well. At least
since revision r169108


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Bug c++/47206] [4.6 Regression] [C++0x] ICE: SIGSEGV in cp_tree_equal (tree.c:2150) with -fno-elide-constructors
  2011-01-07 11:49 [Bug c++/47206] New: [4.6 Regression] [C++0x] ICE: SIGSEGV in cp_tree_equal (tree.c:2150) with -fno-elide-constructors zsojka at seznam dot cz
                   ` (2 preceding siblings ...)
  2011-01-26 10:13 ` dodji at gcc dot gnu.org
@ 2011-01-26 10:14 ` dodji at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: dodji at gcc dot gnu.org @ 2011-01-26 10:14 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47206

Dodji Seketeli <dodji at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE

--- Comment #3 from Dodji Seketeli <dodji at gcc dot gnu.org> 2011-01-26 09:57:33 UTC ---
Fixed in trunk (4.6)

*** This bug has been marked as a duplicate of bug 47041 ***


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-01-26  9:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-07 11:49 [Bug c++/47206] New: [4.6 Regression] [C++0x] ICE: SIGSEGV in cp_tree_equal (tree.c:2150) with -fno-elide-constructors zsojka at seznam dot cz
2011-01-07 14:48 ` [Bug c++/47206] " hjl.tools at gmail dot com
2011-01-19 20:58 ` jakub at gcc dot gnu.org
2011-01-26 10:13 ` dodji at gcc dot gnu.org
2011-01-26 10:14 ` dodji 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).