[patch] fix pr15930

Rafael EspĂ­ndola rafael.espindola at gmail.com
Tue May 14 12:54:32 PDT 2013


This patch should fix pr15930. I have intentionally not changed the
local type itself to have linkage, so we still produce an error for:

typedef void (*ftype)();
template<ftype P>
struct S {
};
struct foo {
  static void g();
};
inline void bar() {
  struct zed {
    static void g();
  };
  S<zed::g> b;
}

Instead what the patch does is change what we do when we see a type
with no linkage being used as a template argument.

Cheers,
Rafael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t.patch
Type: application/octet-stream
Size: 3258 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130514/7c25cc08/attachment.obj>


More information about the cfe-commits mailing list