Skip to content

Missing changes for WG14 N3622Β #166623

@AaronBallman

Description

@AaronBallman

8e60adc implemented part of the paper, but missed "shall not contain a definition of a modifiable object with static or thread storage duration" from the removed text. e.g., we still diagnose this:

inline void f(void) {
  static int x; // warning: on-constant static local variable in inline function may be different in different files
}

https://godbolt.org/z/PhK6YvYnP

This should be accepted in C2y mode and claimed as an extension in earlier language modes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    c2yclang:frontendLanguage frontend issues, e.g. anything involving "Sema"good first issuehttps://github.com/llvm/llvm-project/contribute

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions