public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/49085] New: Crash with SIGSEGV during compilation.
@ 2011-05-20 16:59 kruizinfo at mail dot ru
  2011-05-20 17:50 ` [Bug c++/49085] " redi at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: kruizinfo at mail dot ru @ 2011-05-20 16:59 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: Crash with SIGSEGV during compilation.
           Product: gcc
           Version: 4.4.3
            Status: UNCONFIRMED
          Severity: critical
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: kruizinfo@mail.ru


[kostik@server ~/tmp/exp]$ cat main.cpp 
template <bool> class A;
template <> class A<true> { };

template<int type>
class B {
    long unsigned C;

    typedef A<__builtin_offsetof(B, C) == 0> D;
};

int main() {
    B<0> e;
}
[kostik@server ~/tmp/exp]$ gcc44 -v -save-temps main.cpp
Using built-in specs.
Target: x86_64-portbld-freebsd7.2
Configured with: ./../gcc-4.4-20100112/configure --disable-nls
--with-system-zlib --with-libiconv-prefix=/usr/local --with-gmp=/usr/local
--program-suffix=44 --libdir=/usr/local/lib/gcc44
--libexecdir=/usr/local/libexec/gcc44
--with-gxx-include-dir=/usr/local/lib/gcc44/include/c++/ --disable-libgcj
--prefix=/usr/local --mandir=/usr/local/man --infodir=/usr/local/info/gcc44
--build=x86_64-portbld-freebsd7.2
Thread model: posix
gcc version 4.4.3 20100112 (prerelease) (GCC) 
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-mtune=generic'
 /usr/local/libexec/gcc44/gcc/x86_64-portbld-freebsd7.2/4.4.3/cc1plus -E -quiet
-v main.cpp -mtune=generic -fpch-preprocess -o main.ii
ignoring nonexistent directory
"/usr/local/lib/gcc44/gcc/x86_64-portbld-freebsd7.2/4.4.3/../../../../../x86_64-portbld-freebsd7.2/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/lib/gcc44/include/c++/
 /usr/local/lib/gcc44/include/c++//x86_64-portbld-freebsd7.2
 /usr/local/lib/gcc44/include/c++//backward
 /usr/local/include
 /usr/local/lib/gcc44/gcc/x86_64-portbld-freebsd7.2/4.4.3/include
 /usr/local/lib/gcc44/gcc/x86_64-portbld-freebsd7.2/4.4.3/include-fixed
 /usr/include
End of search list.
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-mtune=generic'
 /usr/local/libexec/gcc44/gcc/x86_64-portbld-freebsd7.2/4.4.3/cc1plus
-fpreprocessed main.ii -quiet -dumpbase main.cpp -mtune=generic -auxbase main
-version -o main.s
GNU C++ (GCC) version 4.4.3 20100112 (prerelease) (x86_64-portbld-freebsd7.2)
        compiled by GNU C version 4.4.3 20100112 (prerelease), GMP version
4.3.2, MPFR version 2.4.2.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=30720
Compiler executable checksum: 216f0d8dc8a20a6d63819a57c5a389f3
main.cpp: In instantiation of 'B<0>':
main.cpp:12:   instantiated from here
main.cpp:8: internal compiler error: Segmentation fault: 11
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
[kostik@server ~/tmp/exp]$


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

* [Bug c++/49085] Crash with SIGSEGV during compilation.
  2011-05-20 16:59 [Bug c++/49085] New: Crash with SIGSEGV during compilation kruizinfo at mail dot ru
@ 2011-05-20 17:50 ` redi at gcc dot gnu.org
  2011-05-21  9:47 ` rguenth at gcc dot gnu.org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: redi at gcc dot gnu.org @ 2011-05-20 17:50 UTC (permalink / raw)
  To: gcc-bugs

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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2011.05.20 17:31:32
     Ever Confirmed|0                           |1
      Known to fail|                            |4.5.2, 4.6.0
           Severity|critical                    |normal

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-05-20 17:31:32 UTC ---
ice.cc: In instantiation of 'B<0>':
ice.cc:12:10:   instantiated from here
ice.cc:8:46: internal compiler error: in tree_low_cst, at tree.c:6410


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

* [Bug c++/49085] Crash with SIGSEGV during compilation.
  2011-05-20 16:59 [Bug c++/49085] New: Crash with SIGSEGV during compilation kruizinfo at mail dot ru
  2011-05-20 17:50 ` [Bug c++/49085] " redi at gcc dot gnu.org
@ 2011-05-21  9:47 ` rguenth at gcc dot gnu.org
  2011-07-01  3:04 ` jason at gcc dot gnu.org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-05-21  9:47 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

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

--- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-05-21 09:34:36 UTC ---
8473          off = size_binop_loc (input_location, PLUS_EXPR,
DECL_FIELD_OFFSET (t),
8474                    size_int (tree_low_cst (DECL_FIELD_BIT_OFFSET (t),
8475                                1)
8476                          / BITS_PER_UNIT));


and DECL_FIELD_BIT_OFFSET is NULL.

(gdb) call debug_tree (t)
 <field_decl 0x14295fa18 C
    type <integer_type 0x142818690 long unsigned int public unsigned type_6 DI
        size <integer_cst 0x1428017a8 constant 64>
        unit size <integer_cst 0x1428017d0 constant 8>
        align 64 symtab 0 alias set -1 canonical type 0x142818690 precision 64
min <integer_cst 0x1428017f8 0> max <integer_cst 0x142801780
18446744073709551615>>
    used private decl_3 VOID file t.ii line 6 col 19
    align 1 offset_align 1 context <record_type 0x1429732a0 B> chain <type_decl
0x1429718a0 B>>


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

* [Bug c++/49085] Crash with SIGSEGV during compilation.
  2011-05-20 16:59 [Bug c++/49085] New: Crash with SIGSEGV during compilation kruizinfo at mail dot ru
  2011-05-20 17:50 ` [Bug c++/49085] " redi at gcc dot gnu.org
  2011-05-21  9:47 ` rguenth at gcc dot gnu.org
@ 2011-07-01  3:04 ` jason at gcc dot gnu.org
  2011-07-01 13:36 ` jason at gcc dot gnu.org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jason at gcc dot gnu.org @ 2011-07-01  3:04 UTC (permalink / raw)
  To: gcc-bugs

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

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
         AssignedTo|unassigned at gcc dot       |jason at gcc dot gnu.org
                   |gnu.org                     |


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

* [Bug c++/49085] Crash with SIGSEGV during compilation.
  2011-05-20 16:59 [Bug c++/49085] New: Crash with SIGSEGV during compilation kruizinfo at mail dot ru
                   ` (2 preceding siblings ...)
  2011-07-01  3:04 ` jason at gcc dot gnu.org
@ 2011-07-01 13:36 ` jason at gcc dot gnu.org
  2011-07-01 16:33 ` jason at gcc dot gnu.org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jason at gcc dot gnu.org @ 2011-07-01 13:36 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> 2011-07-01 13:36:20 UTC ---
Author: jason
Date: Fri Jul  1 13:36:17 2011
New Revision: 175758

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=175758
Log:
    PR c++/49085
    * semantics.c (finish_offsetof): Complain about incomplete type.

Added:
    trunk/gcc/testsuite/g++.dg/template/offsetof2.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/semantics.c
    trunk/gcc/testsuite/ChangeLog


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

* [Bug c++/49085] Crash with SIGSEGV during compilation.
  2011-05-20 16:59 [Bug c++/49085] New: Crash with SIGSEGV during compilation kruizinfo at mail dot ru
                   ` (3 preceding siblings ...)
  2011-07-01 13:36 ` jason at gcc dot gnu.org
@ 2011-07-01 16:33 ` jason at gcc dot gnu.org
  2011-07-09 10:13 ` redi at gcc dot gnu.org
  2011-09-08  7:17 ` jakub at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: jason at gcc dot gnu.org @ 2011-07-01 16:33 UTC (permalink / raw)
  To: gcc-bugs

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

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|ice-on-valid-code           |ice-on-invalid-code
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.7.0

--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> 2011-07-01 16:32:59 UTC ---
Fixed for 4.7.0


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

* [Bug c++/49085] Crash with SIGSEGV during compilation.
  2011-05-20 16:59 [Bug c++/49085] New: Crash with SIGSEGV during compilation kruizinfo at mail dot ru
                   ` (4 preceding siblings ...)
  2011-07-01 16:33 ` jason at gcc dot gnu.org
@ 2011-07-09 10:13 ` redi at gcc dot gnu.org
  2011-09-08  7:17 ` jakub at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: redi at gcc dot gnu.org @ 2011-07-09 10:13 UTC (permalink / raw)
  To: gcc-bugs

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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pkmx.tw at gmail dot com

--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-07-09 10:12:36 UTC ---
*** Bug 49689 has been marked as a duplicate of this bug. ***


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

* [Bug c++/49085] Crash with SIGSEGV during compilation.
  2011-05-20 16:59 [Bug c++/49085] New: Crash with SIGSEGV during compilation kruizinfo at mail dot ru
                   ` (5 preceding siblings ...)
  2011-07-09 10:13 ` redi at gcc dot gnu.org
@ 2011-09-08  7:17 ` jakub at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2011-09-08  7:17 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |scovich at gmail dot com

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> 2011-09-08 07:14:59 UTC ---
*** Bug 50312 has been marked as a duplicate of this bug. ***


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

end of thread, other threads:[~2011-09-08  7:15 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-20 16:59 [Bug c++/49085] New: Crash with SIGSEGV during compilation kruizinfo at mail dot ru
2011-05-20 17:50 ` [Bug c++/49085] " redi at gcc dot gnu.org
2011-05-21  9:47 ` rguenth at gcc dot gnu.org
2011-07-01  3:04 ` jason at gcc dot gnu.org
2011-07-01 13:36 ` jason at gcc dot gnu.org
2011-07-01 16:33 ` jason at gcc dot gnu.org
2011-07-09 10:13 ` redi at gcc dot gnu.org
2011-09-08  7:17 ` jakub 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).