Skip to content

Recursive structure def. could use better error diagnostics messages #4353

@llvmbot

Description

@llvmbot
Bugzilla Link 3981
Resolution WONTFIX
Resolved on Mar 12, 2010 00:56
Version unspecified
OS All
Reporter LLVM Bugzilla Contributor
CC @DougGregor,@efriedma-quic

Extended Description

Consider the following C source code:

struct foo;
struct foo { struct foo f; };

The follow error output is produced:

s.c:2:25: error: field has incomplete type 'struct foo'
struct foo { struct foo f; };
^
s.c:2:8: note: definition of 'struct foo' is not complete until the closing '}'
struct foo { struct foo f; };
^
2 diagnostics generated.

These diagnostic messages could be improved. Particularly, the second message is spurious.

On an unrelated note, perhaps "Diagnostics" should be a category in Bugzilla to report bugs against...

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillaclang:frontendLanguage frontend issues, e.g. anything involving "Sema"wontfixIssue is real, but we can't or won't fix it. Not invalid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions