Issue 164273
Summary auto allowed with a type in C++
Labels good first issue, clang:frontend, diverges-from:gcc, diverges-from:msvc, diverges-from:edg
Assignees
Reporter shafik
    We currently allow something like this in C++: https://godbolt.org/z/7fabbGfe6

```cpp
void f() {
  auto int x = 1;
}
```

It looks like this was allowed as an extension in C++ because it was valid C but I don't think it makes sense to support this anymore.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to