Skip to content

acceptance of invalid enum syntax #2788

@llvmbot

Description

@llvmbot
Bugzilla Link 2416
Resolution FIXED
Resolved on May 28, 2010 17:28
Version unspecified
OS Linux
Attachments buggy source file
Reporter LLVM Bugzilla Contributor

Extended Description

buggy source code(enum.c):

enum en {};

error:
ccc -c enum.c
enum.c
clang -emit-llvm-bc -x c -o enum.o enum.c

proper:
gcc -c enum.c
enum.c:1: error: expected identifier before ‘}’ token

clang svn: At revision 51993.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillaclang:frontendLanguage frontend issues, e.g. anything involving "Sema"

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions