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/68090] New: VLA compound literal -- "confused by earlier errors, bailing out"


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68090

            Bug ID: 68090
           Summary: VLA compound literal  -- "confused by earlier errors,
                    bailing out"
           Product: gcc
           Version: 5.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ch3root at openwall dot com
  Target Milestone: ---

Compiling the following program:

int main() { (int [(0,1)]){0}; }

produce this:

compound-vla.c: In function âmainâ:
compound-vla.c:1:14: error: compound literal has variable size
 int main() { (int [(0,1)]){0}; }
              ^
compound-vla.c:1: confused by earlier errors, bailing out

The error message is fine but it should not "confuse" the compiler.

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