------- Comment #5 from falk at debian dot org  2009-03-09 10:59 -------
Here's a test case:

void *p;
extern inline void *f1(int n) {
    asm volatile("" : "=m"(*(struct { char x[n]; }*) p));
}

int x;
extern inline void f2() {
    x ? f1(1) : f1(2);
}

inline void f3() { f2(); }
void f4() { f3(); }

With trunk #144708, I'm getting:

min.c: In function 'f4':
min.c:12: internal compiler error: in copy_tree_body_r, at tree-inline.c:1042
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


-- 

falk at debian dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
          Component|c                           |tree-optimization
     Ever Confirmed|0                           |1
           Keywords|                            |ice-on-valid-code
      Known to fail|                            |4.4.0
      Known to work|                            |4.3.1
            Summary|gcc 4.4.0 20090306 segfaults|[4.4 regression] ICE in
                   |at argp-help.c in glibc 2.7 |copy_tree_body_r
                   |and 2.9                     |


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

Reply via email to