jyknight added a comment.

Given that this is an error `error: functions cannot be declared in an 
anonymous struct` (thus you can assume that function declarations inside a 
struct imply that the struct MUST have a linkage name)

  struct {
    static int foo();
  };

then I don't think there's any conceptual reason why we cannot emit the desired 
diagnostics without the undesired side-effect.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D121328/new/

https://reviews.llvm.org/D121328

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to