@@ -38,7 +38,7 @@ namespace cwg1512 { // cwg1512: 4
3838 template <typename A, typename B, typename C> void composite_pointer_type_is_ord () {
3939 composite_pointer_type_is_base<A, B, C>();
4040
41- typedef __typeof (val<A>() < val<B>()) cmp; // #cwg1512-lt
41+ typedef __typeof (val<A>() < val<B>()) cmp; // #cwg1512-lt
4242 // since-cxx17-warning@#cwg1512-lt {{ordered comparison of function pointers ('int (*)() noexcept' and 'int (*)()')}}
4343 // since-cxx17-note@#cwg1512-noexcept-1st {{in instantiation of function template specialization 'cwg1512::composite_pointer_type_is_ord<int (*)() noexcept, int (*)(), int (*)()>' requested here}}
4444 // since-cxx17-warning@#cwg1512-lt {{ordered comparison of function pointers ('int (*)()' and 'int (*)() noexcept')}}
@@ -332,7 +332,7 @@ namespace cwg1550 { // cwg1550: 3.4
332332namespace cwg1558 { // cwg1558: 12
333333#if __cplusplus >= 201103L
334334 template <class T , class ...> using first_of = T;
335- template <class T > first_of<void , typename T::type> f (int ); // #cwg1558-f
335+ template <class T > first_of<void , typename T::type> f (int ); // #cwg1558-f
336336 template <class T > void f (...) = delete; // #cwg1558-f-deleted
337337
338338 struct X { typedef void type; };
@@ -639,7 +639,7 @@ namespace cwg1591 { //cwg1591. Deducing array bound and element type from initi
639639#if __cplusplus >= 201103L
640640 template <class T , int N> int h (T const (&)[N]);
641641 int X = h({1 ,2 ,3 }); // T deduced to int, N deduced to 3
642-
642+
643643 template <class T > int j (T const (&)[3]);
644644 int Y = j({42 }); // T deduced to int, array bound not considered
645645
@@ -655,12 +655,12 @@ namespace cwg1591 { //cwg1591. Deducing array bound and element type from initi
655655
656656 template <class T , int N> int n (T const (&)[N], T);
657657 int X1 = n({{1 },{2 },{3 }},Aggr()); // OK, T is Aggr, N is 3
658-
659-
658+
659+
660660 namespace check_multi_dim_arrays {
661661 template <class T , int N, int M, int O> int ***f (const T (&a)[N][M][O]); // #cwg1591-f-3
662662 template <class T , int N, int M> int **f (const T (&a)[N][M]); // #cwg1591-f-2
663-
663+
664664 template <class T , int N> int *f (const T (&a)[N]); // #cwg1591-f-1
665665 int ***p3 = f({ { {1 ,2 }, {3 , 4 } }, { {5 ,6 }, {7 , 8 } }, { {9 ,10 }, {11 , 12 } } });
666666 int ***p33 = f({ { {1 ,2 }, {3 , 4 } }, { {5 ,6 }, {7 , 8 } }, { {9 ,10 }, {11 , 12 , 13 } } });
@@ -675,7 +675,7 @@ namespace cwg1591 { //cwg1591. Deducing array bound and element type from initi
675675 namespace check_multi_dim_arrays_rref {
676676 template <class T , int N, int M, int O> int ***g (T (&&a)[N][M][O]); // #cwg1591-g-3
677677 template <class T , int N, int M> int **g (T (&&a)[N][M]); // #cwg1591-g-2
678-
678+
679679 template <class T , int N> int *g (T (&&a)[N]); // #cwg1591-g-1
680680 int ***p3 = g({ { {1 ,2 }, {3 , 4 } }, { {5 ,6 }, {7 , 8 } }, { {9 ,10 }, {11 , 12 } } });
681681 int ***p33 = g({ { {1 ,2 }, {3 , 4 } }, { {5 ,6 }, {7 , 8 } }, { {9 ,10 }, {11 , 12 , 13 } } });
@@ -687,15 +687,15 @@ namespace cwg1591 { //cwg1591. Deducing array bound and element type from initi
687687 int **p22 = g({ {1 ,2 }, {3 , 4 } });
688688 int *p1 = g({1 , 2 , 3 });
689689 }
690-
690+
691691 namespace check_arrays_of_init_list {
692692 template <class T , int N> float *h (const std::initializer_list<T> (&)[N]);
693693 template <class T , int N> double *h (const T (&)[N]);
694694 double *p = h({1 , 2 , 3 });
695695 float *fp = h({{1 }, {1 , 2 }, {1 , 2 , 3 }});
696696 }
697697 namespace core_reflector_28543 {
698-
698+
699699 template <class T , int N> int *i (T (&&)[N]); // #1
700700 template <class T > char *i (std::initializer_list<T> &&); // #2
701701 template <class T , int N, int M> int **i (T (&&)[N][M]); // #3 #cwg1591-i-2
@@ -704,13 +704,13 @@ namespace cwg1591 { //cwg1591. Deducing array bound and element type from initi
704704 template <class T > short *i (T (&&)[2]); // #5
705705
706706 template <class T > using Arr = T[];
707-
707+
708708 char *pc = i({1 , 2 , 3 }); // OK prefer #2 via 13.3.3.2 [over.ics.rank]
709- char *pc2 = i({1 , 2 }); // #2 also
709+ char *pc2 = i({1 , 2 }); // #2 also
710710 int *pi = i(Arr<int >{1 , 2 , 3 }); // OK prefer #1
711711
712712 void *pv1 = i({ {1 , 2 , 3 }, {4 , 5 , 6 } }); // ambiguous btw 3 & 4
713- // since-cxx11-error@-1 {{call to 'i' is ambiguous}}
713+ // since-cxx11-error@-1 {{call to 'i' is ambiguous}}
714714 // since-cxx11-note@#cwg1591-i-2 {{candidate function [with T = int, N = 2, M = 3]}}
715715 // since-cxx11-note@#cwg1591-i-1 {{candidate function [with T = int, N = 2]}}
716716 char **pcc = i({ {1 }, {2 , 3 } }); // OK #4
0 commit comments