public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/43109] New: ICE: SIGSEGV with unnamed namespace inside named @ 2010-02-17 22:26 zsojka at seznam dot cz 2010-02-17 23:00 ` [Bug c++/43109] [4.5 Regression] " jason at gcc dot gnu dot org ` (3 more replies) 0 siblings, 4 replies; 5+ messages in thread From: zsojka at seznam dot cz @ 2010-02-17 22:26 UTC (permalink / raw) To: gcc-bugs Command line: g++ testcase.C --------- testcase.C --------- namespace std { namespace { struct S {}; } } ------------------------------ Tested revisions: r156830 - crash r156515 - crash r156367 - crash r156293 - OK r153685 - OK 4.4 r156256 - OK Valgrind output: ==12612== Command: /mnt/svn/gcc-trunk/binary-156830-lto/libexec/gcc/x86_64-unknown-linux-gnu/4.5.0/cc1plus -quiet -D_GNU_SOURCE testcase.C -quiet -dumpbase testcase.C -mtune=generic -auxbase testcase -o /tmp/cckpV07O.s ==12612== ==12612== Invalid read of size 2 ==12612== at 0x5C2192: begin_class_definition (semantics.c:2381) ==12612== by 0x565F57: cp_parser_type_specifier (parser.c:15874) ==12612== by 0x572ED1: cp_parser_decl_specifier_seq (parser.c:9214) ==12612== by 0x562D4A: cp_parser_simple_declaration (parser.c:8876) ==12612== by 0x57A076: cp_parser_block_declaration (parser.c:8837) ==12612== by 0x5824C9: cp_parser_declaration (parser.c:8742) ==12612== by 0x581F39: cp_parser_declaration_seq_opt (parser.c:8633) ==12612== by 0x58215F: cp_parser_namespace_definition (parser.c:12933) ==12612== by 0x582597: cp_parser_declaration (parser.c:8734) ==12612== by 0x581F39: cp_parser_declaration_seq_opt (parser.c:8633) ==12612== by 0x58215F: cp_parser_namespace_definition (parser.c:12933) ==12612== by 0x582597: cp_parser_declaration (parser.c:8734) ==12612== Address 0x0 is not stack'd, malloc'd or (recently) free'd ==12612== testcase.C:3:13: 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. -- Summary: ICE: SIGSEGV with unnamed namespace inside named Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: zsojka at seznam dot cz GCC host triplet: x86_64-pc-linux-gnu GCC target triplet: x86_64-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43109 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/43109] [4.5 Regression] ICE: SIGSEGV with unnamed namespace inside named 2010-02-17 22:26 [Bug c++/43109] New: ICE: SIGSEGV with unnamed namespace inside named zsojka at seznam dot cz @ 2010-02-17 23:00 ` jason at gcc dot gnu dot org 2010-02-18 16:27 ` jason at gcc dot gnu dot org ` (2 subsequent siblings) 3 siblings, 0 replies; 5+ messages in thread From: jason at gcc dot gnu dot org @ 2010-02-17 23:00 UTC (permalink / raw) To: gcc-bugs -- jason at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at gcc dot gnu |jason at gcc dot gnu dot org |dot org | Status|UNCONFIRMED |ASSIGNED Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2010-02-17 23:00:42 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43109 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/43109] [4.5 Regression] ICE: SIGSEGV with unnamed namespace inside named 2010-02-17 22:26 [Bug c++/43109] New: ICE: SIGSEGV with unnamed namespace inside named zsojka at seznam dot cz 2010-02-17 23:00 ` [Bug c++/43109] [4.5 Regression] " jason at gcc dot gnu dot org @ 2010-02-18 16:27 ` jason at gcc dot gnu dot org 2010-02-18 20:01 ` jason at gcc dot gnu dot org 2010-02-23 17:07 ` hjl at gcc dot gnu dot org 3 siblings, 0 replies; 5+ messages in thread From: jason at gcc dot gnu dot org @ 2010-02-18 16:27 UTC (permalink / raw) To: gcc-bugs ------- Comment #1 from jason at gcc dot gnu dot org 2010-02-18 16:27 ------- Subject: Bug 43109 Author: jason Date: Thu Feb 18 16:27:07 2010 New Revision: 156864 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=156864 Log: PR c++/43109 * semantics.c (begin_class_definition): Don't crash on unnamed ns. Added: trunk/gcc/testsuite/g++.dg/parse/namespace12.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/semantics.c trunk/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43109 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/43109] [4.5 Regression] ICE: SIGSEGV with unnamed namespace inside named 2010-02-17 22:26 [Bug c++/43109] New: ICE: SIGSEGV with unnamed namespace inside named zsojka at seznam dot cz 2010-02-17 23:00 ` [Bug c++/43109] [4.5 Regression] " jason at gcc dot gnu dot org 2010-02-18 16:27 ` jason at gcc dot gnu dot org @ 2010-02-18 20:01 ` jason at gcc dot gnu dot org 2010-02-23 17:07 ` hjl at gcc dot gnu dot org 3 siblings, 0 replies; 5+ messages in thread From: jason at gcc dot gnu dot org @ 2010-02-18 20:01 UTC (permalink / raw) To: gcc-bugs ------- Comment #2 from jason at gcc dot gnu dot org 2010-02-18 20:01 ------- Fixed. -- jason at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED Target Milestone|--- |4.5.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43109 ^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c++/43109] [4.5 Regression] ICE: SIGSEGV with unnamed namespace inside named 2010-02-17 22:26 [Bug c++/43109] New: ICE: SIGSEGV with unnamed namespace inside named zsojka at seznam dot cz ` (2 preceding siblings ...) 2010-02-18 20:01 ` jason at gcc dot gnu dot org @ 2010-02-23 17:07 ` hjl at gcc dot gnu dot org 3 siblings, 0 replies; 5+ messages in thread From: hjl at gcc dot gnu dot org @ 2010-02-23 17:07 UTC (permalink / raw) To: gcc-bugs ------- Comment #3 from hjl at gcc dot gnu dot org 2010-02-23 17:04 ------- Subject: Bug 43109 Author: hjl Date: Tue Feb 23 17:02:26 2010 New Revision: 157010 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=157010 Log: Backport testcases from mainline. 2010-02-23 H.J. Lu <hongjiu.lu@intel.com> Backport from mainline: 2010-02-22 Richard Guenther <rguenther@suse.de> PR tree-optimization/42749 * gcc.c-torture/compile/pr42749.c: New testcase. 2010-02-21 Dodji Seketeli <dodji@redhat.com> PR c++/42824 * g++.dg/template/memclass4.C: New test. 2010-02-20 Paul Thomas <pault@gcc.gnu.org> PR fortran/43111 * gfortran.dg/internal_pack_8.f90: New test. 2010-02-18 Jason Merrill <jason@redhat.com> PR c++/43109 * g++.dg/parse/namespace12.C: New. 2010-02-18 Martin Jambor <mjambor@suse.cz> PR tree-optimization/43066 * gcc.c-torture/compile/pr43066.c: New test. 2010-02-17 Jason Merrill <jason@redhat.com> PR c++/43069 * g++.dg/parse/namespace11.C: New. PR c++/43093 * g++.dg/ext/attrib37.C: New. PR c++/43079 * g++.dg/template/ptrmem20.C: New. 2010-02-16 Jason Merrill <jason@redhat.com> PR c++/43031 * g++.dg/ext/attrib36.C: New. 2010-02-15 Richard Guenther <rguenther@suse.de> PR middle-end/43068 * g++.dg/torture/pr43068.C: New testcase. 2010-02-11 Richard Guenther <rguenther@suse.de> PR tree-optimization/42998 * gcc.c-torture/compile/pr42998.c: New testcase. 2010-02-10 Richard Guenther <rguenther@suse.de> PR tree-optimization/43017 * gcc.dg/torture/pr43017.c: New testcase. 2010-02-10 Richard Guenther <rguenther@suse.de> PR c/43007 * gcc.c-torture/execute/20100209-1.c: New testcase. * gcc.dg/fold-div-3.c: Likewise. 2010-02-09 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR fortran/42999 * gfortran.dg/array_constructor_35.f90: New test. 2010-02-09 Richard Guenther <rguenther@suse.de> PR tree-optimization/43008 * gcc.c-torture/execute/pr43008.c: New testcase. 2010-02-09 Richard Guenther <rguenther@suse.de> PR tree-optimization/43000 * gcc.dg/torture/pr43000.c: New testcase. * gcc.dg/torture/pr43002.c: Likewise. 2010-02-06 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR libfortran/42742 * gfortran.dg/fmt_cache_2.f: New test. 2010-02-03 Jason Merrill <jason@redhat.com> PR c++/42870 * g++.dg/ext/dllexport3.C: New. Added: branches/gcc-4_4-branch/gcc/testsuite/g++.dg/ext/attrib36.C - copied unchanged from r157009, trunk/gcc/testsuite/g++.dg/ext/attrib36.C branches/gcc-4_4-branch/gcc/testsuite/g++.dg/ext/attrib37.C - copied unchanged from r157009, trunk/gcc/testsuite/g++.dg/ext/attrib37.C branches/gcc-4_4-branch/gcc/testsuite/g++.dg/ext/dllexport3.C - copied unchanged from r157009, trunk/gcc/testsuite/g++.dg/ext/dllexport3.C branches/gcc-4_4-branch/gcc/testsuite/g++.dg/parse/namespace11.C - copied unchanged from r157009, trunk/gcc/testsuite/g++.dg/parse/namespace11.C branches/gcc-4_4-branch/gcc/testsuite/g++.dg/parse/namespace12.C - copied unchanged from r157009, trunk/gcc/testsuite/g++.dg/parse/namespace12.C branches/gcc-4_4-branch/gcc/testsuite/g++.dg/template/memclass4.C - copied unchanged from r157009, trunk/gcc/testsuite/g++.dg/template/memclass4.C branches/gcc-4_4-branch/gcc/testsuite/g++.dg/template/ptrmem20.C - copied unchanged from r157009, trunk/gcc/testsuite/g++.dg/template/ptrmem20.C branches/gcc-4_4-branch/gcc/testsuite/g++.dg/torture/pr43068.C - copied unchanged from r157009, trunk/gcc/testsuite/g++.dg/torture/pr43068.C branches/gcc-4_4-branch/gcc/testsuite/gcc.c-torture/compile/pr42749.c - copied unchanged from r157009, trunk/gcc/testsuite/gcc.c-torture/compile/pr42749.c branches/gcc-4_4-branch/gcc/testsuite/gcc.c-torture/compile/pr42998.c - copied unchanged from r157009, trunk/gcc/testsuite/gcc.c-torture/compile/pr42998.c branches/gcc-4_4-branch/gcc/testsuite/gcc.c-torture/compile/pr43066.c - copied unchanged from r157009, trunk/gcc/testsuite/gcc.c-torture/compile/pr43066.c branches/gcc-4_4-branch/gcc/testsuite/gcc.c-torture/execute/20100209-1.c - copied unchanged from r157009, trunk/gcc/testsuite/gcc.c-torture/execute/20100209-1.c branches/gcc-4_4-branch/gcc/testsuite/gcc.c-torture/execute/pr43008.c - copied unchanged from r157009, trunk/gcc/testsuite/gcc.c-torture/execute/pr43008.c branches/gcc-4_4-branch/gcc/testsuite/gcc.dg/fold-div-3.c - copied unchanged from r157009, trunk/gcc/testsuite/gcc.dg/fold-div-3.c branches/gcc-4_4-branch/gcc/testsuite/gcc.dg/torture/pr43000.c - copied unchanged from r157009, trunk/gcc/testsuite/gcc.dg/torture/pr43000.c branches/gcc-4_4-branch/gcc/testsuite/gcc.dg/torture/pr43002.c - copied unchanged from r157009, trunk/gcc/testsuite/gcc.dg/torture/pr43002.c branches/gcc-4_4-branch/gcc/testsuite/gfortran.dg/array_constructor_35.f90 - copied unchanged from r157009, trunk/gcc/testsuite/gfortran.dg/array_constructor_35.f90 branches/gcc-4_4-branch/gcc/testsuite/gfortran.dg/fmt_cache_2.f - copied unchanged from r157009, trunk/gcc/testsuite/gfortran.dg/fmt_cache_2.f branches/gcc-4_4-branch/gcc/testsuite/gfortran.dg/internal_pack_8.f90 - copied unchanged from r157009, trunk/gcc/testsuite/gfortran.dg/internal_pack_8.f90 Modified: branches/gcc-4_4-branch/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43109 ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-02-23 17:05 UTC | newest] Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2010-02-17 22:26 [Bug c++/43109] New: ICE: SIGSEGV with unnamed namespace inside named zsojka at seznam dot cz 2010-02-17 23:00 ` [Bug c++/43109] [4.5 Regression] " jason at gcc dot gnu dot org 2010-02-18 16:27 ` jason at gcc dot gnu dot org 2010-02-18 20:01 ` jason at gcc dot gnu dot org 2010-02-23 17:07 ` hjl at gcc dot gnu dot 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).