https://bugs.llvm.org/show_bug.cgi?id=35239
David Blaikie <dblai...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |dblai...@gmail.com
Resolution|--- |INVALID
--- Comment #2 from David Blaikie <dblai...@gmail.com> ---
The program you have appears to be ill-formed, though no diagnostic is required
to be produced by the implementation.
C++17, [temp.explicit]p11 states:
"An entity that is the subject of an explicit instantiation declaration and
that is also used in a way that would otherwise cause an implicit instantiation
(17.7.1) in the translation unit shall be the subject of an explicit
instantiation definition somewhere in the program;"
& your program has an explicit instantiation declaration:
extern template class demo<int>;
But doesn't appear to have a corresponding explicit instantiation definition:
template class demo<int>;
Anywhere.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs