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

Attachment: t.patch
Description: Binary data

_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to