================
@@ -0,0 +1,33 @@
+// RUN: %clang_analyze_cc1 -analyzer-checker=core,debug.ExprInspection -verify 
%s
+// expected-no-diagnostics
+
+void clang_analyzer_warnIfReached();
+
+// Forward declaration
+namespace N { // 1st
+template <class T> struct Wrapper;
----------------
steakhal wrote:

Frankly speaking, I'm just puzzled, but I'm not sure how specialisations and 
their lexical parents should work. To me, there is no implementation that would 
always work as expected - depending on the exact layout of forward declarations 
and where an instantiation is triggered and also where the primary template is 
(not to mention partial specialisations).
I figure, this is just one weird way it evolved into.

https://github.com/llvm/llvm-project/pull/178441
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to