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 {
128128 struct Foo {
129129 static const bool value = true ;
130130 };
131-
131+
132132 template <bool b>
133133 struct Bar {};
134-
134+
135135 const bool value = false ;
136-
136+
137137 Bar<bool (ns::Foo<int >::value)> x;
138138}
139139
140140// PR5349
141141namespace ns {
142142 enum E { k };
143-
143+
144144 template <E e>
145145 struct Baz {};
146-
146+
147147 Baz<k> f1; // This works.
148148 Baz<E(0 )> f2; // This too.
149149 Baz<static_cast <E>(0 )> f3; // And this.
150-
150+
151151 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.
153153}
154154
155155// PR5597
@@ -193,7 +193,7 @@ namespace EntityReferenced {
193193
194194 template <typename T>
195195 struct Y {
196- static void f (T x) {
196+ static void f (T x) {
197197 x = 1 ; // expected-error{{incompatible integer to pointer conversion assigning to 'int *' from 'int'}}
198198 }
199199 };
@@ -208,7 +208,7 @@ namespace PR6964 {
208208 // expected-note {{template parameter is declared here}}
209209 struct as_nview { };
210210
211- template <typename Sequence, int I0>
211+ template <typename Sequence, int I0>
212212 struct as_nview <Sequence, I0> // expected-note{{while checking a default template argument used here}}
213213 { };
214214}
@@ -235,7 +235,7 @@ namespace test8 {
235235 char y;
236236 double z;
237237 };
238-
238+
239239 template <C* cp> struct B {
240240 C* p;
241241 B () : p(cp) {}
You can’t perform that action at this time.
0 commit comments