diag0000.chk

来自「开放源码的编译器open watcom 1.6.0版的源代码」· CHK 代码 · 共 1,181 行 · 第 1/5 页

CHK
1,181
字号
  argument count is 2 since there is an implicit 'this' argument
(36,18): Warning! W744: 'operator ->' does not have a return type specified (int assumed)
File: source\diag0020.c
(3,25): Error! E272: 'operator new' must have a return type of pointer to void
(3,25): Error! E273: the first argument of 'operator new' must be of type size_t
(8,30): Error! E271: 'operator delete' must have a return type of void
(8,30): Error! E274: the first argument of 'operator delete' must be of type pointer to void
(8,30): Error! E488: 'operator delete' cannot be overloaded
(10,40): Error! E267: 'operator delete' must have one argument
  argument count is 2 for a non-member function
(10,40): Error! E488: 'operator delete' cannot be overloaded
(13,34): Error! E271: 'operator delete' must have a return type of void
(13,34): Error! E274: the first argument of 'operator delete' must be of type pointer to void
(17,40): Error! E274: the first argument of 'operator delete' must be of type pointer to void
(17,40): Error! E275: the second argument of 'operator delete' must be of type size_t
(26,44): Error! E488: 'operator delete' cannot be overloaded
File: source\diag0021.c
(3,22): Error! E286: static member 'S1' cannot be declared in this class
(6,23): Error! E284: nested type 'S2' cannot be declared in this class
(9,19): Error! E285: enumerator 'S3' cannot be declared in this class
(13,6): Error! E282: anonymous struct/union member 'T' cannot be declared in this class
File: source\diag0022.c
(19,13): Error! E287: constructor cannot have a return type
(20,17): Error! E287: constructor cannot have a return type
(25,13): Error! E289: invalid copy constructor argument list (causes infinite recursion)
(33,15): Error! E290: constructor cannot be declared const or volatile
(35,23): Error! E290: constructor cannot be declared const or volatile
(36,25): Error! E291: constructor cannot be virtual
File: source\diag0023.c
(11,19): Error! E292: types do not match in simple type destructor
(12,19): Error! E292: types do not match in simple type destructor
(13,24): Error! E292: types do not match in simple type destructor
(14,27): Error! E292: types do not match in simple type destructor
(15,20): Error! E292: types do not match in simple type destructor
(16,20): Error! E292: types do not match in simple type destructor
(17,22): Error! E292: types do not match in simple type destructor
File: source\diag0024.c
(6,10): Error! E042: symbol 'S::a' already defined
  definition: 'int S::a'
(9,17): Error! E327: typedef cannot be initialized
(13,18): Error! E330: function cannot be initialized
(16,25): Error! E279: too many initializers
(19,19): Error! E280: too many initializers for character string
(26,16): Warning! W438: string literal concatenated during array initialization
(29,13): Error! E281: expecting '{' but found expression
(32,37): Error! E028: expecting '}' but found '{'
(35,12): Error! E121: syntax error
(39,24): Error! E006: syntax error; probable cause: missing ';'
(43,24): Error! E006: syntax error; probable cause: missing ';'
(47,25): Error! E390: cannot generate default constructor to initialize 'S2' since constructors were declared
(50,12): Error! E178: const object must be initialized
(51,16): Error! E178: const object must be initialized
(54,7): Error! E394: reference object must be initialized
End of file
Warning! W014: no reference to symbol 'h'
  definition: 'int const h'
Warning! W014: no reference to symbol 'ha'
  definition: 'int const ha[3]'
Warning! W014: no reference to symbol 'bad1'
  definition: 'int const bad1[3]'
File: source\diag0025.c
(1,4): Error! E118: nameless declaration is not allowed
(3,5): Error! E121: syntax error
(5,7): Error! E240: enum 'A' has not been declared
(18,13): Error! E125: invalid redefinition of the typedef name 'C'
  definition: 'C'
(23,9): Error! E358: 'S' referenced as a union
(31,10): Error! E359: union 'U' referenced as a class
(32,9): Error! E359: union 'U' referenced as a class
(37,9): Error! E240: enum 'EA' has not been declared
File: source\diag0026.c
(2,27): Error! E295: invalid friend declaration
(2,27): Warning! W146: unexpected storage class specifier found
(3,15): Error! E295: invalid friend declaration
(3,15): Error! E485: friend declaration does not specify a class or function
(3,15): Error! E118: nameless declaration is not allowed
(4,28): Error! E295: invalid friend declaration
(4,28): Warning! W145: unexpected type qualifier found
(5,31): Error! E298: class friend declarations cannot contain a class definition
File: source\diag0027.c
(27,6): Error! E148: access to private member 'C::a' is not allowed
  definition: 'int C::a'
(33,21): Error! E125: invalid redefinition of the typedef name 'BAD'
  definition: 'BAD'
(39,11): Error! E125: invalid redefinition of the typedef name 'BAD'
  definition: 'BAD'
(45,11): Error! E241: class or namespace 'BAD' has not been declared
(47,6): Error! E148: access to private member 'W::a' is not allowed
  definition: 'int W::a'
File: source\diag0028.c
(8,33): Error! E301: 'friend', 'virtual' or 'inline' modifiers are not part of a function's type
(9,21): Error! E135: 'friend', 'virtual' or 'inline' modifiers may only be used on functions
(24,1): Error! E357: virtual function may only be declared in a class
(28,25): Error! E301: 'friend', 'virtual' or 'inline' modifiers are not part of a function's type
(29,24): Error! E301: 'friend', 'virtual' or 'inline' modifiers are not part of a function's type
File: source\diag0029.c
(11,37): Error! E254: 'C::not_found' has not been declared as a member
  definition: 'void C::not_found( void )'
(23,6): Error! E148: access to private member 'Z::a' is not allowed
  definition: 'int Z::a'
File: source\diag0030.c
(7,12): Warning! W188: base class is inherited with private access
(7,16): Warning! W188: base class is inherited with private access
(13,39): Error! E295: invalid friend declaration
(14,34): Error! E147: access to 'A::ambig' is not allowed because it is ambiguous
  definition: 'void A::ambig( void )'
(18,37): Warning! W300: function 'double_OK' has already been declared as a friend
  definition: 'void double_OK( C::Z * )'
(38,6): Error! E148: access to private member 'Z::a' is not allowed
  definition: 'int C::Z::a'
(43,6): Error! E148: access to private member 'Z::a' is not allowed
  definition: 'int C::Z::a'
File: source\diag0031.c
(47,1): Error! E254: 'NEST::foo' has not been declared as a member
  definition: 'void NEST::foo( NEST::NESTED * )'
(48,6): Error! E148: access to private member 'NESTED::q' is not allowed
  definition: 'int NEST::NESTED::q'
File: source\diag0032.c
(18,6): Error! E148: access to private member 'C::a' is not allowed
  definition: 'int C::a'
File: source\diag0033.c
(18,6): Error! E148: access to private member 'C::a' is not allowed
  definition: 'int C::a'
(24,1): Error! E003: missing return value
File: source\diag0034.c
(25,6): Error! E148: access to private member 'C::a' is not allowed
  definition: 'int C::a'
(31,1): Error! E003: missing return value
File: source\diag0035.c
(5,15): Error! E304: class 'C' has not been defined
(5,27): Error! E264: user-defined conversion must be a non-static member function
(15,30): Error! E264: user-defined conversion must be a non-static member function
File: source\diag0036.c
(15,32): Error! E254: 'S::operator double ' has not been declared as a member
  definition: 'S::operator double ()'
(23,1): Error! E003: missing return value
(27,6): Error! E148: access to private member 'C::a' is not allowed
  definition: 'int C::a'
(28,1): Error! E003: missing return value
File: source\diag0037.c
(3,12): Error! E305: all bit-fields in a union must be named
(6,12): Error! E305: all bit-fields in a union must be named
File: source\diag0038.c
(4,2): Error! E308: an anonymous class without a declarator is useless
(6,27): Error! E309: global anonymous union must be declared static
(6,27): Error! E316: anonymous struct/union member 'd' is not distinct in enclosing scope
(10,41): Error! E310: anonymous struct/union cannot have storage class in this context
(11,40): Error! E310: anonymous struct/union cannot have storage class in this context
(15,19): Warning! W311: union contains a protected member
(23,2): Error! E319: anonymous struct/union cannot have any friends
(23,2): Error! E312: anonymous struct/union contains a private member 'private1'
  definition: 'int private1'
(23,2): Error! E313: anonymous struct/union contains a function member 'foo'
  definition: 'void foo( int )'
(23,2): Error! E315: anonymous struct/union contains an enumeration member 'A'
  definition: '<enum> A'
(23,2): Error! E315: anonymous struct/union contains an enumeration member 'B'
  definition: '<enum> B'
(23,2): Error! E315: anonymous struct/union contains an enumeration member 'C'
  definition: '<enum> C'
(23,2): Error! E314: anonymous struct/union contains a typedef member 'T'
  definition: 'T'
(29,6): Error! E316: anonymous struct/union member 'a' is not distinct in enclosing scope
(33,37): Error! E321: anonymous union in a function may only be static or auto
(39,1): Warning! W018: no reference to anonymous union member 'c'
  definition: 'char c'
(39,1): Warning! W018: no reference to anonymous union member 'i1'
  definition: 'int i1'
(39,1): Warning! W018: no reference to anonymous union member 'd1'
  definition: 'double d1'
(40,47): Error! E414: type cannot be defined in an argument
End of file
Warning! W018: no reference to anonymous union member 'a'
  definition: 'int a'
Warning! W018: no reference to anonymous union member 'i1'
  definition: 'int i1'
Warning! W018: no reference to anonymous union member 'd1'
  definition: 'double d1'
Warning! W018: no reference to anonymous union member 'i2'
  definition: 'int i2'
Warning! W018: no reference to anonymous union member 'd2'
  definition: 'double d2'
File: source\diag0039.c
(32,6): Error! E148: access to private member 'C::u0' is not allowed
  definition: 'int C::u0'
(33,6): Error! E148: access to private member 'C::u1' is not allowed
  definition: 'int C::u1'
(34,6): Error! E148: access to private member 'C::u2' is not allowed
  definition: 'int C::u2'
File: source\diag0040.c
(2,19): Error! E127: 'sizeof' is not allowed for an undefined type
(8,21): Error! E322: static data members are not allowed in a local class
(10,1): Warning! W014: no reference to symbol 'C::a'
  definition: 'int C::a' in 'void foo( void )'
(15,9): Warning! W750: function prototype in block scope missing 'extern'
  function prototype is 'int ( int * )'
(21,4): Error! E326: defining 'x' is not possible because its type has unknown size
  definition: 'int x[]'
(26,8): Error! E326: defining 'Z::q' is not possible because its type has unknown size
  definition: 'W Z::q'
(28,14): Error! E681: zero size array must be the last data member
(29,14): Error! E042: symbol 'Z::again' already defined
  definition: 'int Z::again'
(33,21): Error! E042: symbol 'Z::zs3' already defined
  definition: 'int Z::zs3[]'
(34,21): Error! E681: zero size array must be the last data member
(35,21): Error! E681: zero size array must be the last data member
(38,20): Error! E042: symbol 'Z::non_static_1' already defined
  definition: 'int Z::non_static_1'
(40,21): Error! E042: symbol 'Z::non_static_2' already defined
  definition: 'int Z::non_static_2'
(42,13): Error! E326: defining 'Z::zs1' is not possible because its type has unknown size
  definition: 'int Z::zs1[]'
(46,33): Error! E336: declaration specifiers are required to declare 'NOT_A_TYPE'
(46,12): Error! E498: syntax error before 'i_think_this_is_an_id'; probable cause: incorrectly spelled type name
File: source\diag0041.c
(9,20): Error! E337: static function declared in block scope
  function prototype is 'int ( int )'
(12,9): Error! E151: operand is neither a pointer nor an arithmetic type
  operand type is 'S::T (lvalue)'
(21,13): Error! E042: symbol 'a' already defined
  definition: 'int a'
End of file
Error! E043: static function 'never_defined' has not been defined
  definition: 'int never_defined( int )'
Warning! W014: no reference to symbol 'a'
  definition: 'int a'
File: source\diag0042.c
(18,19): Error! E148: access to private member 'R::P' is not allowed
  definition: 'R::P'
File: source\diag0043.c
(102,8): Error! E459: private base class accessed to convert assignment expression
  source conversion type is 'A2 *'
  target conversion type is 'R *'
(103,8): Error! E460: protected base class accessed to convert assignment expression
  source conversion type is 'A3 *'
  target conversion type is 'R *'

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?