Skip to content

Segfault for unterminated macro invocation #2308

Closed
@llvmbot

Description

@llvmbot
Bugzilla Link 1936
Resolution FIXED
Resolved on Mar 12, 2010 00:57
Version unspecified
OS NetBSD
Reporter LLVM Bugzilla Contributor

Extended Description

In the following testcase

#define f(x) x
#if f(2
#endif

the newline at the end of the #if needs to terminate both the macro invocation and the directive, not just one of them.

One of those unfortunate things to which there is not a satisfying solution, in my experience :)

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions