------- Comment #2 from pinskia at gcc dot gnu dot org 2006-04-25 18:47 -------
Hmm, interesting, we have a TARGET_EXPR before gimplifying:
__asm__ __volatile__(""::"m" TARGET_EXPR <D.1284, {
typedef struct
{
char x[0:(unsigned int) ((int) SAVE_EXPR <n> - 1)];
} struct struct
{
char x[0:(unsigned int) ((int) SAVE_EXPR <n> - 1)];
};
struct
{
char x[0:(unsigned int) ((int) SAVE_EXPR <n> - 1)];
} * p = (struct
{
char x[0:(unsigned int) ((int) SAVE_EXPR <n> - 1)];
} *) ptr;
Which might be the real issue.
The C++ front-end rejects this code as a VLA type is invalid even for GNU C++.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|inline-asm |c
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27301