Issue 107582
Summary Clang allows global namespace qualification before template specialization
Labels clang
Assignees
Reporter kim366
    The following C++ code compiles successfully in Clang (trunk):

```cpp
template<typename>
struct X;

template<>
struct ::X<int> {};
```

I am unsure what the C++ standard has to say about this, but gcc fails with the error `global qualification of class name is invalid before '{' token`. If this is incorrect usage, there should at least be a compiler warning.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to