This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/27301] [4.0/4.1/4.2 Regression] ICE on convoluted inline asm with "m" (statement expression and vla)



------- Comment #3 from pinskia at gcc dot gnu dot org  2006-04-30 06:11 -------
Note the correct version of the inline-asm as far as I can tell is:

  __asm__ __volatile__ ("" : : "m" (__extension__
                                    *({ struct { char x[n]; } *p = ptr;
                                     p; })));

Which solves the ICE.


-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]