public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/10433: [3.4 regression] SegFault in type_unknown_p with sizeof
@ 2003-05-11 11:16 Steven Bosscher
  0 siblings, 0 replies; 2+ messages in thread
From: Steven Bosscher @ 2003-05-11 11:16 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR c++/10433; it has been noted by GNATS.

From: Steven Bosscher <s.bosscher@student.tudelft.nl>
To: gcc-gnats@gcc.gnu.org, jrumsey@blizzard.com,
	gcc-bugs@gcc.gnu.org, nobody@gcc.gnu.org, gcc-prs@gcc.gnu.org
Cc:  
Subject: Re: c++/10433: [3.4 regression] SegFault in type_unknown_p with sizeof
Date: Sun, 11 May 2003 13:07:11 +0200

 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10433
 
 Apparently another "New parser" problem.
 
 : Search converges between 2002-12-27-trunk (#85) and 2002-12-28-trunk 
 (#86).
 
 Line-numbered input is:
 ========================================
      1  void foo(int);
      2     
      3  template <int>
      4  struct X {
      5    void bar() {
      6      char c[1];
      7      foo(sizeof(c));
      8    }
      9  };
     10  template struct X<1>;
     11 
 
 ========================================
 
 
 Diagnostic output follows, from the last compiler tested:
 input: In member function `void X<<anonymous> >::bar()':
 input:7: internal compiler error: Segmentation fault
 Please submit a full bug report,
 with preprocessed source if appropriate.
 See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
 
 Compiler output follows, from the last compiler tested:
         .file   "input"
 


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

* Re: c++/10433: [3.4 regression] SegFault in type_unknown_p with sizeof
@ 2003-04-18 18:19 bangerth
  0 siblings, 0 replies; 2+ messages in thread
From: bangerth @ 2003-04-18 18:19 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, jrumsey, nobody

Old Synopsis: G++ crash using array pointer and sizeof as arguments to same function in template method
New Synopsis: [3.4 regression] SegFault in type_unknown_p with sizeof 

State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Fri Apr 18 18:19:38 2003
State-Changed-Why:
    Confirmed. This is even smaller:
    ----------------------
    void foo(int);
    
    template <int>
    struct X {
        void bar() {
          char c[1];
          foo(sizeof(c));
        }
    };
    template struct X<1>;
    --------------------------
    
    g/x> /home/bangerth/bin/gcc-3.4-pre/bin/c++ -c x.cc
    x.cc: In member function `void X<<anonymous> >::bar()':
    x.cc:7: internal compiler error: Segmentation fault
    
    This is a new failure in mainline (3.4). It crashes here:
    
    #0  0x0810c743 in type_unknown_p (exp=0x40183360)
        at ../../gcc-3.4-CVS/gcc/cp/typeck.c:191
    #1  0xbfffea58 in ?? ()
    #2  0x080e6cbe in arg_assoc (k=0xbfffeab0, n=0x401a4154)
        at ../../gcc-3.4-CVS/gcc/cp/decl2.c:4081
    #3  0x080e6c45 in arg_assoc_args (k=0xbfffeab0, args=0x401a4154)
        at ../../gcc-3.4-CVS/gcc/cp/decl2.c:4065
    #4  0x080e7256 in lookup_arg_dependent (name=0x401a2f80, fns=0x401a04a4, 
        args=0x0) at ../../gcc-3.4-CVS/gcc/cp/decl2.c:4169
    #5  0x080fa658 in cp_parser_postfix_expression (parser=0x401a2f40, 
        address_p=false) at ../../gcc-3.4-CVS/gcc/cp/parser.c:3954
    #6  0x080fae10 in cp_parser_unary_expression (parser=0x401a2f40, 
        address_p=false) at ../../gcc-3.4-CVS/gcc/cp/parser.c:4499
    
    In the frames with lowest number, none of the functions
    seem to have been changed recently, so I can't tell which
    patch caused this...
    
    W.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10433


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

end of thread, other threads:[~2003-05-11 11:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-11 11:16 c++/10433: [3.4 regression] SegFault in type_unknown_p with sizeof Steven Bosscher
  -- strict thread matches above, loose matches on Subject: below --
2003-04-18 18:19 bangerth

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).