[Bug c++/92598] explicit specialization of template from unnamed namespace using unqualified-id in enclosing namespace
jan.kratochvil at redhat dot com
gcc-bugzilla@gcc.gnu.org
Wed Feb 17 02:16:27 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92598
--- Comment #2 from Jan Kratochvil <jan.kratochvil at redhat dot com> ---
Created attachment 50210
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50210&action=edit
2j.cpp.xz
gcc-11.0.0-0.19.fc34.x86_64
g++ -c 2j.cpp
/home/jkratoch/redhat/llvm-monorepo/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp:86:8:
error: explicit specialization of 'template<class T> struct llvm::DenseMapInfo'
outside its namespace must use a nested-name-specifier [-fpermissive]
86 | struct DenseMapInfo<std::pair<const MCSymbol *,
MCSymbolRefExpr::VariantKind>> {
|
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
More information about the Gcc-bugs
mailing list