From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1732 invoked by alias); 23 Oct 2006 06:47:54 -0000 Received: (qmail 1703 invoked by uid 48); 23 Oct 2006 06:47:45 -0000 Date: Mon, 23 Oct 2006 06:47:00 -0000 Message-ID: <20061023064745.1702.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug target/29443] ICE: output_operand: invalid expression as operand with -gstabs In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "pinskia at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-10/txt/msg01936.txt.bz2 List-Id: ------- Comment #7 from pinskia at gcc dot gnu dot org 2006-10-23 06:47 ------- Reduced testcase: struct string { struct _Rep{}; static _Rep _S_empty_rep_storage[]; void *_M_rep () const{} void _M_destroy () throw (); ~string () { _Rep *a = (_Rep *)((void *)(&_S_empty_rep_storage)); if (__builtin_expect (_M_rep ()!= a, false)) _M_destroy (); } }; struct ios_base { virtual ~ ios_base (); }; struct ostream : virtual ios_base{}; struct stringbuf { int t()const; string _M_string; string str () const { string __ret; if (t()) return __ret; } }; struct ostringstream : ostream { ostream __ostream_type; stringbuf _M_stringbuf; }; void sizeString () { ostringstream s; s._M_stringbuf.str (); } -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Keywords| |ice-on-valid-code Last reconfirmed|0000-00-00 00:00:00 |2006-10-23 06:47:45 date| | Summary|[4.1 regression] ICE: |ICE: output_operand: invalid |output_operand: invalid |expression as operand with - |expression as operand with -|gstabs |gstabs | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29443