r208756 - Create a redeclaration when an elaborated type specifier

Will Wilson will at indefiant.com
Fri Jun 20 15:27:19 PDT 2014


Hi John,

I believe I've found another corner case issue that may have been caused
by r208756:

template <typename T>
struct GotNonTemplateInnerStruct
{
struct Inner {};
};

struct SomeArg;

template struct __declspec(dllexport)
GotNonTemplateInnerStruct<SomeArg>::Inner;


This results in:
warning : explicit instantiation of non-templated type
'GotNonTemplateInnerStruct<SomeArg>::Inner'

Any thoughts on how best to resolve this for MSVC compatibility?

- Will.



On 14 May 2014 20:40, John McCall <rjmccall at apple.com> wrote:

> On May 14, 2014, at 7:07 AM, Justin Bogner <mail at justinbogner.com> wrote:
> > I think this is causing a crash on a couple of bots:
> >
> >
> http://lab.llvm.org:8013/builders/clang-x86_64-darwin11-RA/builds/6937/steps/make/logs/stdio
> >
> http://lab.llvm.org:8013/builders/clang-x86_64-darwin11-DA/builds/6943/steps/make/logs/stdio
> >
> > Could you take a look? Thanks.
>
> This should be fixed in r208799, sorry.  That’ll teach me not to assume
> that a path was at all competently tested just because it was previously
> possible.
>
> John.
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>



-- 
*Indefiant *: http://www.indefiant.com
Home of Recode : Runtime C++ Editing for VS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140621/6f0d491e/attachment.html>


More information about the cfe-commits mailing list