File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -128,28 +128,28 @@ namespace ns {
128
128
struct Foo {
129
129
static const bool value = true ;
130
130
};
131
-
131
+
132
132
template <bool b>
133
133
struct Bar {};
134
-
134
+
135
135
const bool value = false ;
136
-
136
+
137
137
Bar<bool (ns::Foo<int >::value)> x;
138
138
}
139
139
140
140
// PR5349
141
141
namespace ns {
142
142
enum E { k };
143
-
143
+
144
144
template <E e>
145
145
struct Baz {};
146
-
146
+
147
147
Baz<k> f1; // This works.
148
148
Baz<E(0 )> f2; // This too.
149
149
Baz<static_cast <E>(0 )> f3; // And this.
150
-
150
+
151
151
Baz<ns::E(0 )> b1; // This doesn't work.
152
- Baz<static_cast <ns::E>(0 )> b2; // This neither.
152
+ Baz<static_cast <ns::E>(0 )> b2; // This neither.
153
153
}
154
154
155
155
// PR5597
@@ -193,7 +193,7 @@ namespace EntityReferenced {
193
193
194
194
template <typename T>
195
195
struct Y {
196
- static void f (T x) {
196
+ static void f (T x) {
197
197
x = 1 ; // expected-error{{incompatible integer to pointer conversion assigning to 'int *' from 'int'}}
198
198
}
199
199
};
@@ -208,7 +208,7 @@ namespace PR6964 {
208
208
// expected-note {{template parameter is declared here}}
209
209
struct as_nview { };
210
210
211
- template <typename Sequence, int I0>
211
+ template <typename Sequence, int I0>
212
212
struct as_nview <Sequence, I0> // expected-note{{while checking a default template argument used here}}
213
213
{ };
214
214
}
@@ -235,7 +235,7 @@ namespace test8 {
235
235
char y;
236
236
double z;
237
237
};
238
-
238
+
239
239
template <C* cp> struct B {
240
240
C* p;
241
241
B () : p(cp) {}
You can’t perform that action at this time.
0 commit comments