File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -358,6 +358,7 @@ namespace pointer_comparisons {
358358 // expected-note {{in call to 'f4()'}}
359359}
360360
361+ namespace GH149188 {
361362namespace enable_if_1 {
362363 template <__SIZE_TYPE__ N>
363364 constexpr void foo (const char (&Str)[N])
@@ -381,3 +382,4 @@ namespace enable_if_2 {
381382 constexpr int x = foo ();
382383 }
383384}
385+ }
Original file line number Diff line number Diff line change @@ -25,7 +25,9 @@ constexpr void other_func() {
2525 throw 12 ;
2626}
2727
28- // Make sure these don't trigger the diagnostic.
29- extern const bool & b;
30- constexpr bool fun1 () { return b; }
31- constexpr bool fun2 (const bool & b) { return b; }
28+ namespace GH149041 {
29+ // Make sure these don't trigger the diagnostic.
30+ extern const bool & b;
31+ constexpr bool fun1 () { return b; }
32+ constexpr bool fun2 (const bool & b) { return b; }
33+ }
You can’t perform that action at this time.
0 commit comments