[cfe-dev] Omitted declaration

Sebastian Redl sebastian.redl at getdesigned.at
Sat May 29 04:49:27 PDT 2010


Abramo Bagnara wrote:
> template <typename T>
> struct S {
> };
>
> // S<int> v;
>
> template struct S<int>;
>
> Uncommenting the line above the ClassTemplateSpecializationDecl related
> to the last line disappears from declarations available inside
> TranslationUnitDecl.
>
> I don't think it's expected, right?
>   
If it silently disappears, no. If it also complains, then I wouldn't be
surprised.

Isn't there something about explicit instantiations and implicit
instantiations not mixing?

Sebastian



More information about the cfe-dev mailing list