diag0000.chk
来自「开放源码的编译器open watcom 1.6.0版的源代码」· CHK 代码 · 共 1,112 行 · 第 1/5 页
CHK
1,112 行
argument count is 2 since there is an implicit 'this' argument
(35,29): Error! E267: 'operator ->' must have one argument
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)
(36,18): Warning! W730: return type of 'operator ->' will not allow '->' to be applied
File: ..\diagnose\source\diag0020.c
(3,25): Error! E272: 'operator new' must have a return type of '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 '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 'void *'
(17,40): Error! E274: the first argument of 'operator delete' must be '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: ..\diagnose\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: ..\diagnose\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: ..\diagnose\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: ..\diagnose\source\diag0024.c
(6,10): Error! E042: symbol 'S::a' already defined
'int S::a' defined at: (2,9)
(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'
'int const h' defined at: (50,11)
Warning! W014: no reference to symbol 'ha'
'int const ha[3]' defined at: (51,11)
Warning! W014: no reference to symbol 'bad1'
'int const bad1[3]' defined at: (62,11)
File: ..\diagnose\source\diag0025.c
(1,4): Error! E118: nameless declaration is not allowed
(3,5): Error! E251: enum references must have an identifier
(5,7): Error! E240: 'enum A' has not been declared
(18,13): Error! E125: invalid redefinition of the typedef name 'C'
'C' defined at: (15,18)
(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: ..\diagnose\source\diag0026.c
(2,27): Error! E295: invalid friend declaration
(2,27): Error! E146: 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): Error! E145: unexpected type qualifier found
(5,31): Error! E298: class friend declarations cannot contain a class definition
File: ..\diagnose\source\diag0027.c
(27,6): Error! E148: access to private member 'C::a' is not allowed
'int C::a' defined at: (3,9)
(33,21): Error! E125: invalid redefinition of the typedef name 'BAD'
'BAD' defined at: (30,13)
(39,11): Error! E125: invalid redefinition of the typedef name 'BAD'
'BAD' defined at: (30,13)
(45,11): Error! E241: 'class BAD' has not been declared
(47,6): Error! E148: access to private member 'W::a' is not allowed
'int W::a' defined at: (34,9)
File: ..\diagnose\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: ..\diagnose\source\diag0029.c
(11,37): Error! E254: 'C::not_found' has not been declared as a member
'void C::not_found( void )' defined at: (11,20)
(23,6): Error! E148: access to private member 'Z::a' is not allowed
'int Z::a' defined at: (9,9)
File: ..\diagnose\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
'void A::ambig( void )' defined at: (2,10)
(18,37): Warning! W300: function 'double_OK' has already been declared as a friend
'void double_OK( C::Z * )' defined at: (18,21)
(38,6): Error! E148: access to private member 'Z::a' is not allowed
'int C::Z::a' defined at: (12,13)
(43,6): Error! E148: access to private member 'Z::a' is not allowed
'int C::Z::a' defined at: (12,13)
File: ..\diagnose\source\diag0031.c
(47,1): Error! E254: 'NEST::foo' has not been declared as a member
'void NEST::foo( NEST::NESTED * )' defined at: (46,12)
(48,6): Error! E148: access to private member 'NESTED::q' is not allowed
'int NEST::NESTED::q' defined at: (32,13)
File: ..\diagnose\source\diag0032.c
(18,6): Error! E148: access to private member 'C::a' is not allowed
'int C::a' defined at: (4,9)
File: ..\diagnose\source\diag0033.c
(18,6): Error! E148: access to private member 'C::a' is not allowed
'int C::a' defined at: (4,9)
(24,1): Error! E003: missing return value
File: ..\diagnose\source\diag0034.c
(25,6): Error! E148: access to private member 'C::a' is not allowed
'int C::a' defined at: (3,9)
(31,1): Error! E003: missing return value
File: ..\diagnose\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: ..\diagnose\source\diag0036.c
(15,32): Error! E254: 'S::operator double ' has not been declared as a member
'S::operator double ()' defined at: (15,15)
(23,1): Error! E003: missing return value
(27,6): Error! E148: access to private member 'C::a' is not allowed
'int C::a' defined at: (11,9)
(28,1): Error! E003: missing return value
File: ..\diagnose\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: ..\diagnose\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'
'int private1' defined at: (17,9)
(23,2): Error! E313: anonymous struct/union contains a function member 'foo'
'void foo( int )' defined at: (19,10)
(23,2): Error! E315: anonymous struct/union contains an enumeration member 'A'
'<enum> A' defined at: (21,12)
(23,2): Error! E315: anonymous struct/union contains an enumeration member 'B'
'<enum> B' defined at: (21,15)
(23,2): Error! E315: anonymous struct/union contains an enumeration member 'C'
'<enum> C' defined at: (21,18)
(23,2): Error! E314: anonymous struct/union contains a typedef member 'T'
'T' defined at: (22,17)
(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'
'char c' defined at: (33,33)
(39,1): Warning! W018: no reference to anonymous union member 'i1'
'int i1' defined at: (34,17)
(39,1): Warning! W018: no reference to anonymous union member 'd1'
'double d1' defined at: (35,30)
(40,47): Error! E414: type cannot be defined in an argument
End of file
Warning! W018: no reference to anonymous union member 'a'
'int a' defined at: (6,13)
Warning! W018: no reference to anonymous union member 'i1'
'int i1' defined at: (7,20)
Warning! W018: no reference to anonymous union member 'd1'
'double d1' defined at: (7,31)
Warning! W018: no reference to anonymous union member 'i2'
'int i2' defined at: (8,13)
Warning! W018: no reference to anonymous union member 'd2'
'double d2' defined at: (8,24)
File: ..\diagnose\source\diag0039.c
(32,6): Error! E148: access to private member 'C::u0' is not allowed
'int C::u0' defined at: (3,9)
(33,6): Error! E148: access to private member 'C::u1' is not allowed
'int C::u1' defined at: (5,13)
(34,6): Error! E148: access to private member 'C::u2' is not allowed
'int C::u2' defined at: (7,17)
File: ..\diagnose\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
(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
'int x[]' defined at: (21,3)
(26,8): Error! E326: defining 'Z::q' is not possible because its type has unknown size
'W Z::q' defined at: (26,7)
(28,14): Error! E681: zero size array must be the last data member
(29,14): Error! E042: symbol 'Z::again' already defined
'int Z::again' defined at: (28,9)
(33,21): Error! E042: symbol 'Z::zs3' already defined
'int Z::zs3[]' defined at: (33,16)
(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
'int Z::non_static_1' defined at: (34,9)
(40,21): Error! E042: symbol 'Z::non_static_2' already defined
'int Z::non_static_2' defined at: (35,9)
(42,13): Error! E326: defining 'Z::zs1' is not possible because its type has unknown size
'int Z::zs1[]' defined at: (42,8)
(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: ..\diagnose\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
'int a' defined at: (20,12)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?