public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/23457] New: compiler crash on huge object size with virtual base
@ 2005-08-18  9:24 laurent dot deniau at cern dot ch
  2005-08-18 12:01 ` [Bug c++/23457] [3.4/4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
  2005-09-27 16:15 ` mmitchel at gcc dot gnu dot org
  0 siblings, 2 replies; 6+ messages in thread
From: laurent dot deniau at cern dot ch @ 2005-08-18  9:24 UTC (permalink / raw)
  To: gcc-bugs

Aim: check for B's vbase offset overflow in the D's vtable on IA32.

struct B {
  B() {}
  virtual ~B() {}
  int b;
};
struct D : virtual B {
  char d1[1u << 30];
  char d2[1u << 30];
};

g++-4.0 -std=c++98 -pedantic -W -Wall -O3 bug.cpp -c
bug.cpp:7: internal compiler error: in tree_low_cst, at tree.c:3843
Please submit a full bug report,

g++-4.0 -v
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v
--enable-languages=c,c++,java,f95,objc,ada,treelang --prefix=/usr
--enable-shared --with-system-zlib --libexecdir=/usr/lib --enable-nls
--without-included-gettext --enable-threads=posix --program-suffix=-4.0
--enable-__cxa_atexit --enable-libstdcxx-allocator=mt --enable-clocale=gnu
--enable-libstdcxx-debug --enable-java-gc=boehm --enable-java-awt=gtk
--with-java-home=/usr/lib/jvm/java-1.4.2-gcj-4.0-1.4.2.0/jre --enable-mpfr
--disable-werror --enable-checking=release i486-linux-gnu
Thread model: posix
gcc version 4.0.1 (Debian 4.0.1-2)

-- 
           Summary: compiler crash on huge object size with virtual base
           Product: gcc
           Version: 4.0.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: laurent dot deniau at cern dot ch
                CC: gcc-bugs at gcc dot gnu dot org


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


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

* [Bug c++/23457] [3.4/4.0/4.1 Regression] compiler crash on huge object size with virtual base
  2005-08-18  9:24 [Bug c++/23457] New: compiler crash on huge object size with virtual base laurent dot deniau at cern dot ch
@ 2005-08-18 12:01 ` pinskia at gcc dot gnu dot org
  2005-09-27 16:15 ` mmitchel at gcc dot gnu dot org
  1 sibling, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-18 12:01 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-08-18 11:58 -------
Confirmed, backtrace:
#0  internal_error (msgid=0x83f0f38 "tree_low_cst") at ../../gcc/diagnostic.c:536
#1  0x08127c4f in fancy_abort (file=0x83f0f38 "tree_low_cst", line=3313, function=0x83f0f38 
"tree_low_cst") at ../../gcc/diagnostic.c:584
#2  0x082d0a74 in tree_low_cst (t=0xb7d1d99c, pos=138350392) at ../../gcc/tree.c:3313
#3  0x080b0c47 in make_thunk (function=0xb7d1f870, this_adjusting=true, fixed_offset=0x83f0f38, 
virtual_offset=0xb7d1dcf8) at ../../gcc/cp/method.c:121
#4  0x0808276a in accumulate_vtbl_inits (binfo=0xb7d14fc0, orig_binfo=0xb7d14fc0, 
rtti_binfo=0xb7d14f80, t=0xb7d1a8dc, inits=0xb7d1da8c)
    at ../../gcc/cp/class.c:7390
#5  0x08084117 in finish_struct_1 (t=0xb7d1a8dc) at ../../gcc/cp/class.c:6705
#6  0x08084de8 in finish_struct (t=0xb7d1a8dc, attributes=0x83f0f38) at ../../gcc/cp/class.c:5175
#7  0x080938d3 in cp_parser_type_specifier (parser=0xb7d14740, 
flags=CP_PARSER_FLAGS_OPTIONAL, is_friend=false, is_declaration=true, 
    declares_class_or_enum=0xbfffe7c4, is_cv_qualifier=0xb7d7e2a8) at ../../gcc/cp/parser.c:11763
#8  0x08094afe in cp_parser_decl_specifier_seq (parser=0xb7d14740, 
flags=CP_PARSER_FLAGS_OPTIONAL, attributes=0xbfffe7f8, declares_class_or_enum=0xbfffe7fc)
    at ../../gcc/cp/parser.c:6711
#9  0x08094da2 in cp_parser_simple_declaration (parser=0xb7d14740, 
function_definition_allowed_p=true) at ../../gcc/cp/parser.c:6437
#10 0x08094f68 in cp_parser_block_declaration (parser=0xb7d14740, statement_p=false) at ../../gcc/
cp/parser.c:6397
#11 0x0809a2df in cp_parser_declaration (parser=0xb7d14740) at ../../gcc/cp/parser.c:6317
#12 0x0809a55f in cp_parser_declaration_seq_opt (parser=0xb7d14740) at ../../gcc/cp/parser.c:6226
#13 0x0809a72b in c_parse_file () at ../../gcc/cp/parser.c:2319
#14 0x080ec0e2 in c_common_parse_file (set_yydebug=138350392) at ../../gcc/c-opts.c:1237
#15 0x082cc21d in toplev_main (argc=138350392, argv=0xbfffec73) at ../../gcc/toplev.c:1822
#16 0x080ef8de in main (argc=138350392, argv=0x83f0f38) at ../../gcc/main.c:35


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |ice-on-invalid-code,
                   |                            |monitored
      Known to fail|                            |3.4.0 4.0.0 4.1.0
      Known to work|                            |3.3.3
   Last reconfirmed|0000-00-00 00:00:00         |2005-08-18 11:58:12
               date|                            |
            Summary|compiler crash on huge      |[3.4/4.0/4.1 Regression]
                   |object size with virtual    |compiler crash on huge
                   |base                        |object size with virtual
                   |                            |base
   Target Milestone|---                         |4.0.2


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


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

* [Bug c++/23457] [3.4/4.0/4.1 Regression] compiler crash on huge object size with virtual base
  2005-08-18  9:24 [Bug c++/23457] New: compiler crash on huge object size with virtual base laurent dot deniau at cern dot ch
  2005-08-18 12:01 ` [Bug c++/23457] [3.4/4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
@ 2005-09-27 16:15 ` mmitchel at gcc dot gnu dot org
  1 sibling, 0 replies; 6+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-09-27 16:15 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.0.2                       |4.0.3


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


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

* [Bug c++/23457] [3.4/4.0/4.1 Regression] compiler crash on huge object size with virtual base
       [not found] <bug-23457-1578@http.gcc.gnu.org/bugzilla/>
  2005-10-13 20:03 ` pinskia at gcc dot gnu dot org
  2005-10-31  5:09 ` mmitchel at gcc dot gnu dot org
@ 2005-11-07 23:10 ` mmitchel at gcc dot gnu dot org
  2 siblings, 0 replies; 6+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-11-07 23:10 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from mmitchel at gcc dot gnu dot org  2005-11-07 23:10 -------


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


-- 

mmitchel at gcc dot gnu dot org changed:

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


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


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

* [Bug c++/23457] [3.4/4.0/4.1 Regression] compiler crash on huge object size with virtual base
       [not found] <bug-23457-1578@http.gcc.gnu.org/bugzilla/>
  2005-10-13 20:03 ` pinskia at gcc dot gnu dot org
@ 2005-10-31  5:09 ` mmitchel at gcc dot gnu dot org
  2005-11-07 23:10 ` mmitchel at gcc dot gnu dot org
  2 siblings, 0 replies; 6+ messages in thread
From: mmitchel at gcc dot gnu dot org @ 2005-10-31  5:09 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from mmitchel at gcc dot gnu dot org  2005-10-31 05:09 -------
Leaving as P2; we should fix this.


-- 


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


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

* [Bug c++/23457] [3.4/4.0/4.1 Regression] compiler crash on huge object size with virtual base
       [not found] <bug-23457-1578@http.gcc.gnu.org/bugzilla/>
@ 2005-10-13 20:03 ` pinskia at gcc dot gnu dot org
  2005-10-31  5:09 ` mmitchel at gcc dot gnu dot org
  2005-11-07 23:10 ` mmitchel at gcc dot gnu dot org
  2 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-13 20:03 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gcc dot gnu dot org  2005-10-13 20:03 -------
: Search converges between 2003-10-24-trunk (#384) and 2003-10-25-trunk (#385).


-- 


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


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

end of thread, other threads:[~2005-11-07 23:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-18  9:24 [Bug c++/23457] New: compiler crash on huge object size with virtual base laurent dot deniau at cern dot ch
2005-08-18 12:01 ` [Bug c++/23457] [3.4/4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
2005-09-27 16:15 ` mmitchel at gcc dot gnu dot org
     [not found] <bug-23457-1578@http.gcc.gnu.org/bugzilla/>
2005-10-13 20:03 ` pinskia at gcc dot gnu dot org
2005-10-31  5:09 ` mmitchel at gcc dot gnu dot org
2005-11-07 23:10 ` mmitchel 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).