@@ -23,7 +23,7 @@ namespace dr301 { // dr301: 3.5
23
23
bool b = (void (*)(S, S))operator - < (void (*)(S, S))operator -;
24
24
// cxx98-17-warning@-1 {{ordered comparison of function pointers ('void (*)(S, S)' and 'void (*)(S, S)')}}
25
25
// cxx20-23-error@-2 {{expected '>'}}
26
- // cxx20-23-note@-3 {{to match this '<'}}
26
+ // cxx20-23-note@-3 {{to match this '<'}}
27
27
bool c = (void (*)(S, S))operator + < (void (*)(S, S))operator -;
28
28
// expected-error@-1 {{expected '>'}}
29
29
// expected-note@-2 {{to match this '<'}}
@@ -432,7 +432,7 @@ namespace dr329 { // dr329: 3.5
432
432
// expected-note@#dr329-b {{in instantiation of template class 'dr329::A<char>' requested here}}
433
433
// expected-note@#dr329-i {{previous definition is here}}
434
434
};
435
- A<int > a;
435
+ A<int > a;
436
436
A<char > b; // #dr329-b
437
437
438
438
void test () {
@@ -631,7 +631,7 @@ namespace dr339 { // dr339: 2.8
631
631
char xxx (int );
632
632
char (&xxx (float ))[2];
633
633
634
- template <class T > A<sizeof (xxx((T)0 ))> f (T) {} // #dr339-f
634
+ template <class T > A<sizeof (xxx((T)0 ))> f (T) {} // #dr339-f
635
635
636
636
void test () {
637
637
A<1 > a = f (0 );
@@ -673,9 +673,9 @@ namespace dr341 { // dr341: sup 1708
673
673
namespace B {
674
674
extern " C" int &dr341_a = dr341_a;
675
675
// expected-error@-1 {{redefinition of 'dr341_a'}}
676
- // expected-note@#dr341_a {{previous definition is here}}
676
+ // expected-note@#dr341_a {{previous definition is here}}
677
677
}
678
- extern " C" void dr341_b (); // #dr341_b
678
+ extern " C" void dr341_b (); // #dr341_b
679
679
}
680
680
int dr341_a;
681
681
// expected-error@-1 {{declaration of 'dr341_a' in global scope conflicts with declaration with C language linkage}}
@@ -693,7 +693,7 @@ namespace dr341 {
693
693
// expected-error@-1 {{declaration of 'dr341_d' with C language linkage conflicts with declaration in global scope}}
694
694
// expected-note@#dr341_d {{declared in global scope here}}
695
695
696
- namespace A { extern " C" int dr341_e; } // #dr341_e
696
+ namespace A { extern " C" int dr341_e; } // #dr341_e
697
697
namespace B { extern " C" void dr341_e (); }
698
698
// expected-error@-1 {{redefinition of 'dr341_e' as different kind of symbol}}
699
699
// expected-note@#dr341_e {{previous definition is here}}
@@ -817,7 +817,7 @@ namespace dr352 { // dr352: 2.8
817
817
void g (A::E e) {
818
818
foo (e, &arg);
819
819
// expected-error@-1 {{no matching function for call to 'foo'}}
820
- // expected-note@#dr352-foo {{candidate template ignored: couldn't infer template argument 'R'}}
820
+ // expected-note@#dr352-foo {{candidate template ignored: couldn't infer template argument 'R'}}
821
821
822
822
using A::foo;
823
823
foo<int , int >(e, &arg); // ok, uses non-template
@@ -918,7 +918,7 @@ namespace dr352 { // dr352: 2.8
918
918
919
919
namespace example5 {
920
920
template <int I> class A {};
921
- template <int I> void g (A<I+1 >); // #dr352-g
921
+ template <int I> void g (A<I+1 >); // #dr352-g
922
922
template <int I> void f (A<I>, A<I+1 >);
923
923
void h (A<1 > a1, A<2 > a2) {
924
924
g (a1);
@@ -1095,7 +1095,7 @@ namespace dr364 { // dr364: yes
1095
1095
}
1096
1096
1097
1097
// dr366: yes
1098
- #if "foo" // expected-error {{invalid token at start of a preprocessor expression}}
1098
+ #if "foo" // expected-error {{invalid token at start of a preprocessor expression}}
1099
1099
#endif
1100
1100
1101
1101
namespace dr367 { // dr367: yes
@@ -1252,7 +1252,7 @@ namespace dr373 { // dr373: 5
1252
1252
}
1253
1253
};
1254
1254
1255
- struct A { struct B {}; }; // #dr373-A
1255
+ struct A { struct B {}; }; // #dr373-A
1256
1256
namespace X = A::B;
1257
1257
// expected-error@-1 {{expected namespace name}}
1258
1258
// expected-note@#dr373-A {{'A' declared here}}
@@ -1585,7 +1585,7 @@ namespace dr395 { // dr395: 3.0
1585
1585
// expected-error@-2 {{conversion function cannot have any parameters}}
1586
1586
// expected-error@-3 {{cannot specify any part of a return type in the declaration of a conversion function}}
1587
1587
// expected-error@-4 {{conversion function cannot convert to a function type}}
1588
-
1588
+
1589
1589
};
1590
1590
1591
1591
struct null1_t {
@@ -1698,9 +1698,9 @@ namespace dr399 { // dr399: 11
1698
1698
B_ptr->B_alias ::~B ();
1699
1699
B_ptr->B_alias ::~B_alias ();
1700
1700
B_ptr->dr399 ::~B ();
1701
- // expected-error@-1 {{qualified member access refers to a member in namespace 'dr399'}}
1701
+ // expected-error@-1 {{no member named '~B' in namespace 'dr399'}}
1702
1702
B_ptr->dr399 ::~B_alias ();
1703
- // expected-error@-1 {{qualified member access refers to a member in namespace 'dr399'}}
1703
+ // expected-error@-1 {{no member named '~B' in namespace 'dr399'}}
1704
1704
}
1705
1705
1706
1706
template <typename T, typename U>
0 commit comments