• Home
  • Raw
  • Download

Lines Matching full:warning

6   using size_t = decltype(sizeof(0)); // expected-warning {{decltype}} expected-warning {{alias}}
16 template<typename ...T> // expected-warning {{variadic templates are incompatible with C++98}}
19 template<template<typename> class ...T> // expected-warning {{variadic templates are incompatible …
22 template<int ...I> // expected-warning {{variadic templates are incompatible with C++98}}
25 alignas(8) int with_alignas; // expected-warning {{'alignas' is incompatible with C++98}}
26 int with_attribute [[ ]]; // expected-warning {{C++11 attribute syntax is incompatible with C++98}}
29 (void)u8"str"; // expected-warning {{unicode literals are incompatible with C++98}} in Literals()
30 (void)u"str"; // expected-warning {{unicode literals are incompatible with C++98}} in Literals()
31 (void)U"str"; // expected-warning {{unicode literals are incompatible with C++98}} in Literals()
32 (void)u'x'; // expected-warning {{unicode literals are incompatible with C++98}} in Literals()
33 (void)U'x'; // expected-warning {{unicode literals are incompatible with C++98}} in Literals()
35 (void)u8R"X(str)X"; // expected-warning {{raw string literals are incompatible with C++98}} in Literals()
36 (void)uR"X(str)X"; // expected-warning {{raw string literals are incompatible with C++98}} in Literals()
37 (void)UR"X(str)X"; // expected-warning {{raw string literals are incompatible with C++98}} in Literals()
38 (void)R"X(str)X"; // expected-warning {{raw string literals are incompatible with C++98}} in Literals()
39 (void)LR"X(str)X"; // expected-warning {{raw string literals are incompatible with C++98}} in Literals()
44 …S<::S<void> > s; // expected-warning {{'<::' is treated as digraph '<:' (aka '[') followed by ':' …
45 …S< ::S<void>> t; // expected-warning {{consecutive right angle brackets are incompatible with C++9…
49 []{}(); // expected-warning {{lambda expressions are incompatible with C++98}} in Lambda()
60 int InitList(int i = {}) { // expected-warning {{generalized initializer lists are incompatible wit… in InitList()
61 … // expected-warning {{scalar initialized from empty initializer list is incompatible with C++98}}
62 …(void)new int {}; // expected-warning {{generalized initializer lists are incompatible with C++98}…
63 … // expected-warning {{scalar initialized from empty initializer list is incompatible with C++98}}
64 (void)int{}; // expected-warning {{generalized initializer lists are incompatible with C++98}} \
65 … // expected-warning {{scalar initialized from empty initializer list is incompatible with C++98}}
66 int x { 0 }; // expected-warning {{generalized initializer lists are incompatible with C++98}}
68 s = {}; // expected-warning {{generalized initializer lists are incompatible with C++98}}
69 …std::initializer_list<int> xs = { 1, 2, 3 }; // expected-warning {{initialization of initializer_l…
70 …auto ys = { 1, 2, 3 }; // expected-warning {{initialization of initializer_list object is incompat…
71 // expected-warning {{'auto' type specifier is incompatible with C++98}}
72 …Ctor c1 = { 1, 2 }; // expected-warning {{constructor call from initializer list is incompatible w…
73 …Ctor c2 = { 3.0, 4l }; // expected-warning {{constructor call from initializer list is incompatibl…
74 …InitListCtor ilc = { true, false }; // expected-warning {{initialization of initializer_list objec…
75 …const int &r = { 0 }; // expected-warning {{reference initialized from initializer list is incompa…
76 …struct { int a; const int &r; } rr = { 0, {0} }; // expected-warning {{reference initialized from …
77 …return { 0 }; // expected-warning {{generalized initializer lists are incompatible with C++98}} ex…
80 …oid f(int i = {1}) { // expected-warning {{generalized initializer lists are incompatible with C++… in f()
84 int operator"" _hello(const char *); // expected-warning {{literal operators are incompatible with …
86 enum EnumFixed : int { // expected-warning {{enumeration types with a fixed underlying type are inc…
89 enum class EnumScoped { // expected-warning {{scoped enumerations are incompatible with C++98}}
92 void Deleted() = delete; // expected-warning {{deleted function definitions are incompatible with C…
94 …Defaulted() = default; // expected-warning {{defaulted function definitions are incompatible with …
97 int &&RvalueReference = 0; // expected-warning {{rvalue references are incompatible with C++98}}
99 void f() &; // expected-warning {{reference qualifiers on functions are incompatible with C++98}}
102 auto f() -> int; // expected-warning {{trailing return types are incompatible with C++98}}
104 auto ff() { return 5; } // expected-warning {{'auto' type specifier is incompatible with C++98}} in ff()
109 for (int &a : xs) { // expected-warning {{range-based for loop is incompatible with C++98}} in RangeFor()
112 // expected-warning@-1 {{range-based for loop is incompatible with C++98}} in RangeFor()
113 // expected-warning@-2 {{'auto' type specifier is incompatible with C++98}} in RangeFor()
114 // expected-warning@-3 {{initialization of initializer_list object is incompatible with C++98}} in RangeFor()
115 // expected-warning@-4 {{reference initialized from initializer list is incompatible with C++98}} in RangeFor()
117 …struct Agg { int a, b; } const &agg = { 1, 2 }; // expected-warning {{reference initialized from i… in RangeFor()
121 …int n = 0; // expected-warning {{in-class initialization of non-static data members is incompatibl…
128 struct OverrideControl final : OverrideControlBase { // expected-warning {{'final' keyword is incom…
129 virtual void f() override; // expected-warning {{'override' keyword is incompatible with C++98}}
130 virtual void g() final; // expected-warning {{'final' keyword is incompatible with C++98}}
133 using AliasDecl = int; // expected-warning {{alias declarations are incompatible with C++98}}
134 template<typename T> using AliasTemplate = T; // expected-warning {{alias declarations are incompat…
136 inline namespace InlineNS { // expected-warning {{inline namespaces are incompatible with C++98}}
139 auto auto_deduction = 0; // expected-warning {{'auto' type specifier is incompatible with C++98}}
140 int *p = new auto(0); // expected-warning {{'auto' type specifier is incompatible with C++98}}
142 const int align_of = alignof(int); // expected-warning {{alignof expressions are incompatible with …
143 char16_t c16 = 0; // expected-warning {{'char16_t' type specifier is incompatible with C++98}}
144 char32_t c32 = 0; // expected-warning {{'char32_t' type specifier is incompatible with C++98}}
145 constexpr int const_expr = 0; // expected-warning {{'constexpr' specifier is incompatible with C++9…
146 decltype(const_expr) decl_type = 0; // expected-warning {{'decltype' type specifier is incompatible…
148 void no_except() noexcept; // expected-warning {{noexcept specifications are incompatible with C++9…
149 bool no_except_expr = noexcept(1 + 1); // expected-warning {{noexcept expressions are incompatible …
150 void *null = nullptr; // expected-warning {{'nullptr' is incompatible with C++98}}
151 static_assert(true, "!"); // expected-warning {{static_assert declarations are incompatible with C+…
157 …using InhCtorBase::InhCtorBase; // expected-warning {{inheriting constructors are incompatible wit…
162 …friend void FriendMember::MemberFn(); // expected-warning {{friend declaration naming a member of …
166 …DelegCtor(int) : DelegCtor() {} // expected-warning {{delegating constructors are incompatible wit… in DelegCtor()
170 template<int n = 0> void DefaultFuncTemplateArg(); // expected-warning {{default template arguments…
175 …TemplateFn(S()); // expected-warning {{local type 'S' as template argument is incompatible with C+… in LocalTemplateArg()
178 int UnnamedTemplateArg = TemplateFn(obj_of_unnamed_type); // expected-warning {{unnamed type as tem…
183 …S<(&n)> s; // expected-warning {{redundant parentheses surrounding address non-type template argum…
184 …S<(((&n)))> t; // expected-warning {{redundant parentheses surrounding address non-type template a…
190 template<> struct TemplateSpecOutOfScopeNs::S<char> {}; // expected-warning {{class template specia…
195 typename ::Typename TypenameOutsideTemplate(); // expected-warning {{use of 'typename' outside of a…
196 Typename::template Inner<int> TemplateOutsideTemplate(); // expected-warning {{use of 'template' ke…
205 …Ellipsis(1, TrivialButNonPOD()); // expected-warning {{passing object of trivial but non-POD type … in TrivialButNonPODThroughEllipsis()
209 …explicit operator bool(); // expected-warning {{explicit conversion functions are incompatible wit…
215 …friend enum ::Enum; // expected-warning {{befriending enumeration type 'enum ::Enum' is incompatib…
216 friend int; // expected-warning {{non-class friend type 'int' is incompatible with C++98}}
217 …friend Struct; // expected-warning {{befriending 'Struct' without 'struct' keyword is incompatible…
220 int n = {}; // expected-warning {{scalar initialized from empty initializer list is incompatible wi…
225 template<typename T> typename T::ImPrivate SFINAEAccessControl(T t) { // expected-warning {{substit… in SFINAEAccessControl()
242 …NonTrivCtor ntc; // expected-warning {{union member 'ntc' with a non-trivial constructor is incomp…
243 …NonTrivCopy ntcp; // expected-warning {{union member 'ntcp' with a non-trivial copy constructor is…
244 …NonTrivDtor ntd; // expected-warning {{union member 'ntd' with a non-trivial destructor is incompa…
248 …NonTrivCtor ntc; // expected-warning {{anonymous struct member 'ntc' with a non-trivial constructo…
249 …NonTrivCopy ntcp; // expected-warning {{anonymous struct member 'ntcp' with a non-trivial copy con…
250 …NonTrivDtor ntd; // expected-warning {{anonymous struct member 'ntd' with a non-trivial destructor…
254 …expr double d = 0.0; // expected-warning {{static data member 'd' in union is incompatible with C+…
255 …static const int n = 0; // expected-warning {{static data member 'n' in union is incompatible with…
256 static int k; // expected-warning {{static data member 'k' in union is incompatible with C++98}}
260 int EnumNNS = Enum::enum_val; // expected-warning {{enumeration type in nested name specifier is in…
262 …int k = T::enum_val; // expected-warning {{enumeration type in nested name specifier is incompatib… in EnumNNSFn()
267 …goto DirectJump; // expected-warning {{jump from this goto statement to its label is incompatible … in JumpDiagnostics()
272 …goto *Table[n]; // expected-warning {{jump from this indirect goto statement to one of its possibl… in JumpDiagnostics()
278 …default: // expected-warning {{jump from switch statement to this case label is incompatible with … in JumpDiagnostics()
288 …int k = sizeof(S::n); // expected-warning {{use of non-static data member 'n' in an unevaluated co…
289 …const std::type_info &ti = typeid(S::n); // expected-warning {{use of non-static data member 'n' i…
293 …char c1 = '\u001e'; // expected-warning {{universal character name referring to a control characte…
294 …wchar_t c2 = L'\u0041'; // expected-warning {{specifying character 'A' with a universal character …
295 …const char *s1 = "foo\u0031"; // expected-warning {{specifying character '1' with a universal char…
296 …const wchar_t *s2 = L"bar\u0085"; // expected-warning {{universal character name referring to a co…
303 …S<const int&, k> s1; // expected-warning {{non-type template argument referring to object 'k' with…
304 …S<void(&)(), f> s2; // expected-warning {{non-type template argument referring to function 'f' wit…
311 …X<(int*)0> x; // expected-warning {{use of null pointer as non-type template argument is incompati…
312 …Y<(int A::*)0> y; // expected-warning {{use of null pointer as non-type template argument is incom…
322 …basic_iterator it; // expected-warning {{union member 'it' with a non-trivial copy constructor is …
337 …a x; // expected-warning {{union member 'x' with a non-trivial copy assignment operator is incompa…
338 …b y; // expected-warning {{union member 'y' with a non-trivial copy assignment operator is incompa…
344 …X(const X&) = delete; // expected-warning{{deleted function definitions are incompatible with C++9…
349 …X x; // expected-warning{{union member 'x' with a non-trivial constructor is incompatible with C++…
355 // expected-warning@-2 {{variable templates are incompatible with C++ standards before C++14}}
357 // expected-warning@-4 {{variable templates are a C++14 extension}}
370 // expected-warning@-2 {{variable templates are incompatible with C++ standards before C++14}}
372 // expected-warning@-4 {{variable templates are a C++14 extension}}
380 // expected-warning@-2 {{variable templates are incompatible with C++ standards before C++14}}
382 // expected-warning@-4 {{variable templates are a C++14 extension}}
387 // expected-warning@-2 {{variable templates are incompatible with C++ standards before C++14}}
389 // expected-warning@-4 {{variable templates are a C++14 extension}}
398 int digit_seps = 123'456; // expected-warning {{digit separators are incompatible with C++ standard…