[cfe-dev] Deducing a partial specialization fails
via cfe-dev
cfe-dev at lists.llvm.org
Tue May 28 06:01:13 PDT 2019
Please consider the example here:
https://godbolt.org/z/4AwrXz
Clang up to version 3.9.1 and all recent versions of other compilers accept the code. Clang version >=4.0 fails.
If you move the definition of AccessorPointersT to Foo, it works again and the partial specialization is deduced correctly.
Is this a bug or a pedantic interpretation of the c++ standard by clang?
Best Olaf
--
Deutsches Zentrum für Luft- und Raumfahrt (DLR)
Institut für Softwaremethoden zur Produkt-Virtualisierung | SP DD |
Zwickauer Strasse 46 | 01069 Dresden
Dr. Olaf Krzikalla | Hochleistungsrechnen
Telefon +49 351 210718 119 | olaf.krzikalla at dlr.de
More information about the cfe-dev
mailing list