Skip to content

Crash in simplecpp::Macro::expand() #470

Description

@chrchr-github
#define lparen (
#define a0 fooa0
#define a1  fooa1 a0
#define a2  fooa2 a1
#define a3  fooa3 a2
#define a() b lparen )
#define b() c lparen )
#define c() d lparen )
#define g h
#define i(j) j
#define f(...) #__VA_OPT__(g i(0))
const char *v1 = f();

Downstream: https://trac.cppcheck.net/ticket/14043

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions