[Bug tree-optimization/29070] New: [4.2 regression] verify_stmts failed (invalid operand to unary operator

tbm at cyrius dot com gcc-bugzilla@gcc.gnu.org
Wed Sep 13 21:26:00 GMT 2006


tbm@coconut0:~$ /usr/lib/gcc-snapshot/bin/gcc -c -O flac-ogg_encoder_aspect.c
flac-ogg_encoder_aspect.c: In function
'OggFLAC__ogg_encoder_aspect_write_callback_wrapper':
flac-ogg_encoder_aspect.c:24: error: invalid operand to unary operator
OggFLAC__MAPPING_VERSION_MAJORD.1685

flac-ogg_encoder_aspect.c:24: internal compiler error: verify_stmts failed
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
tbm@coconut0:~$ /usr/lib/gcc-snapshot/bin/gcc -c flac-ogg_encoder_aspect.c
tbm@coconut0:~$ gcc-4.1 -c -O flac-ogg_encoder_aspect.c
tbm@coconut0:~$ cat flac-ogg_encoder_aspect.c
typedef long unsigned int size_t;
extern void *memcpy (void *__restrict __dest, __const void *__restrict __src,
                     size_t __n) __attribute__ ((__nothrow__))
  __attribute__ ((__nonnull__ (1, 2)));
typedef unsigned char FLAC__uint8;
typedef FLAC__uint8 FLAC__byte;
typedef enum
{
  FLAC__STREAM_ENCODER_WRITE_STATUS_OK =
    0, FLAC__STREAM_ENCODER_WRITE_STATUS_FATAL_ERROR
}
FLAC__StreamEncoderWriteStatus;
typedef struct OggFLAC__OggEncoderAspect
{
}
OggFLAC__OggEncoderAspect;
FLAC__StreamEncoderWriteStatus (*OggFLAC__OggEncoderAspectWriteCallbackProxy)
(const void *encoder, const FLAC__byte buffer[], unsigned bytes, unsigned
samples,
unsigned current_frame, void *client_data);
static const FLAC__byte OggFLAC__MAPPING_VERSION_MAJOR = 1;
OggFLAC__ogg_encoder_aspect_write_callback_wrapper (OggFLAC__OggEncoderAspect
                                                    * aspect,
                                                    void *client_data)
{
    {
      FLAC__byte synthetic_first_packet_body[(1u) + (4u) + (1u) + (1u) +
                                             (2u) + (4u) + (4u) + (34u)];
        {
          FLAC__byte *b = synthetic_first_packet_body;
          b += (4u);
          memcpy (b, &OggFLAC__MAPPING_VERSION_MAJOR, (1u));
        }
    }
}


-- 
           Summary: [4.2 regression] verify_stmts failed (invalid operand to
                    unary operator
                    OggFLAC__MAPPING_VERSION_MAJORD.1685)
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tbm at cyrius dot com


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



More information about the Gcc-bugs mailing list