This seems problematic for mingw, where I expect users probably use non-type template parameters of dllimported stuff. Is there another way we can handle this? http://reviews.llvm.org/D4299