public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/55786] New: g++ segmentation fault
@ 2012-12-22 10:05 hpsMouse at gmail dot com
  2013-02-27 13:10 ` [Bug c++/55786] " paolo.carlini at oracle dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: hpsMouse at gmail dot com @ 2012-12-22 10:05 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 55786
           Summary: g++ segmentation fault
    Classification: Unclassified
           Product: gcc
           Version: 4.7.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: hpsMouse@gmail.com


Created attachment 29025
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29025
source code to produce the bug

g++ reports segmentation fault when compiling attachment bug.cpp.

Command line and output:
$ LC_ALL=C g++ -v -std=gnu++11 -c bug.cpp
Using built-in specs.
COLLECT_GCC=g++
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.7.2-4'
--with-bugurl=file:///usr/share/doc/gcc-4.7/README.Bugs
--enable-languages=c,c++,go,fortran,objc,obj-c++ --prefix=/usr
--program-suffix=-4.7 --enable-shared --enable-linker-build-id
--with-system-zlib --libexecdir=/usr/lib --without-included-gettext
--enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.7
--libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu
--enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object
--enable-plugin --enable-objc-gc --with-arch-32=i586 --with-tune=generic
--enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu
--target=x86_64-linux-gnu
Thread model: posix
gcc version 4.7.2 (Debian 4.7.2-4) 
COLLECT_GCC_OPTIONS='-v' '-std=gnu++11' '-c' '-shared-libgcc' '-mtune=generic'
'-march=x86-64'
 /usr/lib/gcc/x86_64-linux-gnu/4.7/cc1plus -quiet -v -imultiarch
x86_64-linux-gnu -D_GNU_SOURCE bug.cpp -quiet -dumpbase bug.cpp -mtune=generic
-march=x86-64 -auxbase bug -std=gnu++11 -version -o /tmp/ccyacAB5.s
GNU C++ (Debian 4.7.2-4) version 4.7.2 (x86_64-linux-gnu)
    compiled by GNU C version 4.7.2, GMP version 5.0.5, MPFR version 3.1.0-p10,
MPC version 0.9
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring nonexistent directory "/usr/local/include/x86_64-linux-gnu"
ignoring nonexistent directory
"/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../x86_64-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/include/c++/4.7
 /usr/include/c++/4.7/x86_64-linux-gnu
 /usr/include/c++/4.7/backward
 /usr/lib/gcc/x86_64-linux-gnu/4.7/include
 /usr/local/include
 /usr/lib/gcc/x86_64-linux-gnu/4.7/include-fixed
 /usr/include/x86_64-linux-gnu
 /usr/include
End of search list.
GNU C++ (Debian 4.7.2-4) version 4.7.2 (x86_64-linux-gnu)
    compiled by GNU C version 4.7.2, GMP version 5.0.5, MPFR version 3.1.0-p10,
MPC version 0.9
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 34bdacb89b7ae9c3d7f292b0c3935a9a
bug.cpp:8:30: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.7/README.Bugs> for instructions.
Preprocessed source stored into /tmp/ccnD8A9t.out file, please attach this to
your bugreport.


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

* [Bug c++/55786] g++ segmentation fault
  2012-12-22 10:05 [Bug c++/55786] New: g++ segmentation fault hpsMouse at gmail dot com
@ 2013-02-27 13:10 ` paolo.carlini at oracle dot com
  2013-03-05 14:40 ` gcc at abeckmann dot de
  2013-03-06 23:41 ` paolo.carlini at oracle dot com
  2 siblings, 0 replies; 4+ messages in thread
From: paolo.carlini at oracle dot com @ 2013-02-27 13:10 UTC (permalink / raw)
  To: gcc-bugs


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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-invalid-code
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2013-02-27
     Ever Confirmed|0                           |1


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

* [Bug c++/55786] g++ segmentation fault
  2012-12-22 10:05 [Bug c++/55786] New: g++ segmentation fault hpsMouse at gmail dot com
  2013-02-27 13:10 ` [Bug c++/55786] " paolo.carlini at oracle dot com
@ 2013-03-05 14:40 ` gcc at abeckmann dot de
  2013-03-06 23:41 ` paolo.carlini at oracle dot com
  2 siblings, 0 replies; 4+ messages in thread
From: gcc at abeckmann dot de @ 2013-03-05 14:40 UTC (permalink / raw)
  To: gcc-bugs


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

Andreas Beckmann <gcc at abeckmann dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gcc at abeckmann dot de

--- Comment #1 from Andreas Beckmann <gcc at abeckmann dot de> 2013-03-05 14:39:58 UTC ---
PR56534 is probably a duplicate of this
Found: 4.8.0 4.7.3
Notfound: 4.6.4

$ g++-trunk -v -c /tmp/bug.cpp 
Using built-in specs.
COLLECT_GCC=/opt/software/x86_64/gcc-trunk/bin/g++-trunk
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-trunk/configure --prefix=/opt/software/x86_64/gcc-trunk
--program-suffix=-trunk --enable-languages=c,c++,fortran --enable-checking
Thread model: posix
gcc version 4.8.0 20130302 (experimental) (GCC) 
COLLECT_GCC_OPTIONS='-v' '-c' '-shared-libgcc' '-mtune=generic' '-march=x86-64'

/opt/software/x86_64/gcc-trunk/libexec/gcc/x86_64-unknown-linux-gnu/4.8.0/cc1plus
-quiet -v -imultilib . -imultiarch x86_64-linux-gnu -D_GNU_SOURCE /tmp/bug.cpp
-quiet -dumpbase bug.cpp -mtune=generic -march=x86-64 -auxbase bug -version -o
/tmp/ccqIqNaE.s
GNU C++ (GCC) version 4.8.0 20130302 (experimental) (x86_64-unknown-linux-gnu)
        compiled by GNU C version 4.8.0 20130302 (experimental), GMP version
5.0.5, MPFR version 3.1.0-p10, MPC version 0.9
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
ignoring nonexistent directory "/usr/local/include/x86_64-linux-gnu"
ignoring nonexistent directory
"/opt/software/x86_64/gcc-trunk/lib/gcc/x86_64-unknown-linux-gnu/4.8.0/../../../../x86_64-unknown-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:

/opt/software/x86_64/gcc-trunk/lib/gcc/x86_64-unknown-linux-gnu/4.8.0/../../../../include/c++/4.8.0

/opt/software/x86_64/gcc-trunk/lib/gcc/x86_64-unknown-linux-gnu/4.8.0/../../../../include/c++/4.8.0/x86_64-unknown-linux-gnu/.

/opt/software/x86_64/gcc-trunk/lib/gcc/x86_64-unknown-linux-gnu/4.8.0/../../../../include/c++/4.8.0/backward
 /opt/software/x86_64/gcc-trunk/lib/gcc/x86_64-unknown-linux-gnu/4.8.0/include
 /usr/local/include
 /opt/software/x86_64/gcc-trunk/include

/opt/software/x86_64/gcc-trunk/lib/gcc/x86_64-unknown-linux-gnu/4.8.0/include-fixed
 /usr/include/x86_64-linux-gnu
 /usr/include
End of search list.
GNU C++ (GCC) version 4.8.0 20130302 (experimental) (x86_64-unknown-linux-gnu)
        compiled by GNU C version 4.8.0 20130302 (experimental), GMP version
5.0.5, MPFR version 3.1.0-p10, MPC version 0.9
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: eedf9bce273f5c2d2f3e6a014c94ec56
/tmp/bug.cpp:8:17: error: ‘>>’ should be ‘> >’ within a nested template
argument list
 struct Foo<Bar<T>>::template Baz<true>
                 ^
/tmp/bug.cpp:8:30: internal compiler error: Segmentation fault
 struct Foo<Bar<T>>::template Baz<true>
                              ^
0xa7da8f crash_signal
        ../../gcc-trunk/gcc/toplev.c:332
0x5331de check_elaborated_type_specifier(tag_types, tree_node*, bool)
        ../../gcc-trunk/gcc/cp/decl.c:11731
0x61d1de cp_parser_elaborated_type_specifier
        ../../gcc-trunk/gcc/cp/parser.c:14256
0x5fad08 cp_parser_type_specifier
        ../../gcc-trunk/gcc/cp/parser.c:13601
0x6121ed cp_parser_decl_specifier_seq
        ../../gcc-trunk/gcc/cp/parser.c:10900
0x616163 cp_parser_single_declaration
        ../../gcc-trunk/gcc/cp/parser.c:21915
0x618ee2 cp_parser_template_declaration_after_export
        ../../gcc-trunk/gcc/cp/parser.c:21800
0x6207f9 cp_parser_declaration
        ../../gcc-trunk/gcc/cp/parser.c:10309
0x61f3dd cp_parser_declaration_seq_opt
        ../../gcc-trunk/gcc/cp/parser.c:10231
0x620c82 cp_parser_translation_unit
        ../../gcc-trunk/gcc/cp/parser.c:3807
0x620c82 c_parse_file()
        ../../gcc-trunk/gcc/cp/parser.c:28182
0x728794 c_common_parse_file()
        ../../gcc-trunk/gcc/c-family/c-opts.c:1046
Please submit a full bug report,


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

* [Bug c++/55786] g++ segmentation fault
  2012-12-22 10:05 [Bug c++/55786] New: g++ segmentation fault hpsMouse at gmail dot com
  2013-02-27 13:10 ` [Bug c++/55786] " paolo.carlini at oracle dot com
  2013-03-05 14:40 ` gcc at abeckmann dot de
@ 2013-03-06 23:41 ` paolo.carlini at oracle dot com
  2 siblings, 0 replies; 4+ messages in thread
From: paolo.carlini at oracle dot com @ 2013-03-06 23:41 UTC (permalink / raw)
  To: gcc-bugs


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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

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

--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> 2013-03-06 23:41:25 UTC ---
PR56534 has a more compact testcase.

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


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

end of thread, other threads:[~2013-03-06 23:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-22 10:05 [Bug c++/55786] New: g++ segmentation fault hpsMouse at gmail dot com
2013-02-27 13:10 ` [Bug c++/55786] " paolo.carlini at oracle dot com
2013-03-05 14:40 ` gcc at abeckmann dot de
2013-03-06 23:41 ` 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).