diag0200.chk
来自「开放源码的编译器open watcom 1.6.0版的源代码」· CHK 代码 · 共 1,183 行 · 第 1/5 页
CHK
1,183 行
(151,31): Error! E287: constructor cannot have a return type
(152,32): Error! E234: destructor cannot have a return type
(170,33): Error! E376: virtual function must be a non-static member function
(173,50): Error! E328: storage class of 'S16::func3' conflicts with previous declaration
definition: 'unsigned long volatile S16::func3( int * )'
(167,36): Error! E204: 'this' pointer is not defined
(177,35): Error! E254: 'S16::b' has not been declared as a member
definition: 'float __far * S16::b[17]'
(183,19): Error! E898: in-class initialization is only allowed for const static integral members
(185,19): Error! E898: in-class initialization is only allowed for const static integral members
(185,21): Error! E029: symbol 'sqrt' has not been declared
(197,20): Error! E110: union cannot be used as a base class
(199,1): Warning! W011: all members are private
(205,20): Error! E111: union cannot have a base class
(213,25): Error! E109: virtual member functions are not allowed in a union
(217,17): Error! E168: static data members are not allowed in an union
(232,12): Error! E183: unions cannot have members with constructors
(244,12): Error! E317: unions cannot have members with destructors
(256,2): Error! E316: anonymous struct/union member 'some_var' is not distinct in enclosing scope
(260,2): Error! E309: global anonymous union must be declared static
(264,2): Error! E309: global anonymous union must be declared static
(272,50): Warning! W311: union contains a protected member
(277,2): Error! E312: anonymous struct/union contains a private member 'some_var3'
definition: 'int __far * some_var3'
(277,2): Error! E313: anonymous struct/union contains a function member 'func'
definition: 'int func( int )'
(287,13): Warning! W311: union contains a protected member
(288,15): Warning! W311: union contains a protected member
(290,22): Warning! W311: union contains a protected member
(298,2): Warning! W146: unexpected storage class specifier found
(302,16): Error! E049: bit-field base type must be an integral type
(303,17): Error! E049: bit-field base type must be an integral type
(304,21): Error! E049: bit-field base type must be an integral type
(305,16): Error! E071: expression must be integral
(307,24): Error! E046: bit-field width is too large
(309,16): Error! E046: bit-field width is too large
(311,14): Error! E046: bit-field width is too large
(348,33): Error! E385: attempt to overload function 'inner::f2' with a different return type
definition: 'int enclose::inner::f2( int )'
(348,33): Error! E254: 'inner::f2' has not been declared as a member
definition: 'void enclose::inner::f2( int )'
(349,6): Error! E374: object (or object pointer) required to access non-static data member
(350,15): Error! E499: object (or object pointer) required to access non-static member function
definition: 'int enclose::func( float )'
(350,15): Error! E056: not expecting a return value
(351,15): Warning! W013: unreachable code
(351,15): Error! E148: access to private member 'enclose::private_si' is not allowed
definition: 'int enclose::private_si'
(354,28): Error! E148: access to private member 'inner::private_inner_si' is not allowed
definition: 'int enclose::inner::private_inner_si'
(357,6): Error! E374: object (or object pointer) required to access non-static data member
(358,15): Error! E499: object (or object pointer) required to access non-static member function
definition: 'int enclose::func( float )'
(358,15): Error! E056: not expecting a return value
(359,15): Warning! W013: unreachable code
(359,15): Error! E148: access to private member 'enclose::private_si' is not allowed
definition: 'int enclose::private_si'
(366,27): Error! E385: attempt to overload function 'inner_friend' with a different return type
definition: 'int inner_friend( int )'
(367,13): Error! E374: object (or object pointer) required to access non-static data member
(368,24): Error! E499: object (or object pointer) required to access non-static member function
definition: 'int enclose::func( float )'
(368,24): Error! E056: not expecting a return value
(369,24): Warning! W013: unreachable code
(369,13): Error! E148: access to private member 'enclose::private_si' is not allowed
definition: 'int enclose::private_si'
(386,8): Error! E258: cannot declare both a function and variable of the same name ('f')
(399,5): Error! E029: symbol 'a' has not been declared
(400,5): Error! E029: symbol 'b' has not been declared
(401,5): Error! E029: symbol 'x' has not been declared
(402,5): Error! E029: symbol 'y' has not been declared
(404,14): Error! E029: symbol 'x' has not been declared
(405,14): Error! E029: symbol 'y' has not been declared
(418,4): Error! E336: declaration specifiers are required to declare 'I'
(418,3): Error! E498: syntax error before 'b'; probable cause: incorrectly spelled type name
(419,6): Error! E336: declaration specifiers are required to declare 'S23'
(419,5): Error! E498: syntax error before 'c'; probable cause: incorrectly spelled type name
(460,8): Error! E006: syntax error; probable cause: missing ';'
(467,11): Error! E041: expression for '->' must be pointer to class, struct or union
operand type is 'int'
(469,17): Error! E178: const object must be initialized
(472,5): Error! E419: cannot call non-const function for a constant object
'S9' defined at: (115,8)
definition: 'int S9::b( int )'
(473,5): Error! E467: cannot call a non-volatile function for a volatile object
'S9' defined at: (115,8)
definition: 'int S9::b( int )'
(474,5): Error! E516: class for object is not defined
'S10' defined at: (129,7)
'S10' defined at: (129,7)
(482,6): Error! E316: anonymous struct/union member 'name_that_is_duplicated' is not distinct in enclosing scope
(489,54): Warning! W311: union contains a protected member
(496,6): Error! E312: anonymous struct/union contains a private member 'some_var3'
definition: 'int __far * some_var3' in 'void main( void )'
(502,12): Error! E149: access to protected member 'U7::pro1' is not allowed
definition: 'int U7::pro1'
(503,12): Error! E149: access to protected member 'U7::pro2' is not allowed
definition: 'float U7::pro2'
(504,12): Error! E148: access to private member 'U7::pri1' is not allowed
definition: 'long U7::pri1'
(505,12): Error! E148: access to private member 'U7::s' is not allowed
definition: 'SOK U7::s'
(508,17): Error! E149: access to protected member 'U7::prof' is not allowed
definition: 'int U7::prof( int )'
(509,17): Error! E148: access to private member 'U7::prif' is not allowed
definition: 'int U7::prif( int )'
(513,5): Error! E029: symbol 'aa' has not been declared
(516,5): Error! E029: symbol 'aa2' has not been declared
(517,9): Error! E166: cannot convert right pointer to type of left operand
source conversion type is 'char *'
target conversion type is '__1nda5aptr *'
(522,21): Error! E006: syntax error; probable cause: missing ';'
(524,11): Error! E057: cannot take address of a bit-field
(525,18): Error! E394: reference object must be initialized
(540,21): Error! E322: static data members are not allowed in a local class
(542,13): Warning! W361: member function was not defined in its class
(547,12): Error! E148: access to private member 'LOCAL::local_int' is not allowed
definition: 'int LOCAL::local_int' in 'void main( void )'
(549,22): Error! E148: access to private member 'LOCAL::priv_func' is not allowed
definition: 'int LOCAL::priv_func( int )' in 'void main( void )'
(551,1): Warning! W014: no reference to symbol 'bs1'
definition: 'S1 bs1' in 'void main( void )'
(551,1): Warning! W014: no reference to symbol 'bs2'
definition: 'S2 bs2' in 'void main( void )'
(551,1): Warning! W014: no reference to symbol 'bs3'
definition: 'S1 bs3' in 'void main( void )'
(551,1): Warning! W014: no reference to symbol 'name_that_is_duplicated'
definition: 'int name_that_is_duplicated' in 'void main( void )'
(551,1): Warning! W018: no reference to anonymous union member 'some_var'
definition: 'int some_var'
(551,1): Warning! W014: no reference to symbol 'bfp'
definition: 'int * bfp' in 'void main( void )'
(551,1): Warning! W014: no reference to symbol 'bfr'
definition: 'int & bfr' in 'void main( void )'
End of file
Warning! W018: no reference to anonymous union member 'float_var'
definition: 'float float_var'
Warning! W018: no reference to anonymous union member 'some_float'
definition: 'float some_float'
Warning! W018: no reference to anonymous union member 'some_float2'
definition: 'float some_float2'
File: source\diag0224.c
(6,12): Error! E118: nameless declaration is not allowed
(7,11): Error! E118: nameless declaration is not allowed
(10,7): Error! E118: nameless declaration is not allowed
(15,10): Error! E118: nameless declaration is not allowed
(19,34): Warning! W146: unexpected storage class specifier found
(20,61): Error! E370: constructor is required for a class with a const member
(20,62): Warning! W146: unexpected storage class specifier found
(21,33): Warning! W146: unexpected storage class specifier found
(22,46): Warning! W146: unexpected storage class specifier found
(23,27): Error! E177: invalid storage class in file scope
(24,17): Error! E177: invalid storage class in file scope
(26,16): Error! E117: too many storage class specifiers
(27,16): Error! E117: too many storage class specifiers
(33,7): Error! E042: symbol 'i1' already defined
definition: 'int i1'
(39,14): Error! E328: storage class of 'i3' conflicts with previous declaration
definition: 'int i3'
(39,14): Error! E042: symbol 'i3' already defined
definition: 'int i3'
(42,14): Error! E328: storage class of 'i4' conflicts with previous declaration
definition: 'int i4'
(42,14): Error! E042: symbol 'i4' already defined
definition: 'int i4'
(51,8): Error! E434: cannot convert to a type of unknown size
'S1' defined at: (44,8)
source conversion type is 'S1 (lvalue)'
class 'S1' has not been defined
target conversion type is 'S1'
class 'S1' has not been defined
(52,7): Error! E708: cannot return a type of unknown size
'S1' defined at: (44,8)
(55,15): Error! E117: too many storage class specifiers
(57,15): Error! E117: too many storage class specifiers
(57,22): Error! E177: invalid storage class in file scope
(58,17): Error! E117: too many storage class specifiers
(62,14): Error! E135: 'friend', 'virtual' or 'inline' modifiers may only be used on functions
(63,15): Error! E135: 'friend', 'virtual' or 'inline' modifiers may only be used on functions
(66,1): Error! E357: virtual function may only be declared in a class
(70,36): Warning! W145: unexpected type qualifier found
(74,17): Error! E037: invalid storage class for function
(74,17): Error! E238: 'f4' is not a function
(74,41): Error! E336: declaration specifiers are required to declare 'a_funtion'
(74,41): Error! E121: syntax error
(76,9): Error! E457: 'i11' was previously declared as a typedef
definition: 'i11'
(81,1): Warning! W014: no reference to symbol 'i11'
definition: 'int i11' in 'void f5( void )'
(84,9): Error! E126: class 'S1' has already been defined
(84,31): Warning! W011: all members are private
(85,15): Error! E125: invalid redefinition of the typedef name 'S1'
definition: 'S1'
(88,20): Error! E125: invalid redefinition of the typedef name 'complex'
definition: 'complex'
(91,12): Error! E457: 'I' was previously declared as a typedef
definition: 'I'
(91,9): Error! E006: syntax error; probable cause: missing ';'
(92,14): Error! E457: 'I' was previously declared as a typedef
definition: 'I'
(92,12): Error! E006: syntax error; probable cause: missing ';'
(100,18): Error! E178: const object must be initialized
(102,9): Error! E186: attempt to modify a constant value
(103,9): Error! E186: attempt to modify a constant value
(108,20): Error! E042: symbol 'orange' already defined
definition: 'colour orange'
(112,8): Error! E042: symbol 'i15' already defined
definition: 'something i15'
(118,23): Error! E071: expression must be integral
(126,9): Warning! W139: enumeration variable is not assigned a constant from its enumeration
left operand type is 'colour (lvalue)'
right operand type is 'int'
(127,9): Warning! W139: enumeration variable is not assigned a constant from its enumeration
left operand type is 'colour (lvalue)'
right operand type is 'int'
(128,8): Warning! W139: enumeration variable is not assigned a constant from its enumeration
operand type is 'colour (lvalue)'
(129,9): Warning! W139: enumeration variable is not assigned a constant from its enumeration
left operand type is 'colour (lvalue)'
right operand type is 'int'
End of file
Warning! W014: no reference to symbol 'f1'
definition: 'char * f1( void )'
Warning! W014: no reference to symbol 'i1'
definition: 'int i1'
Warning! W014: no reference to symbol 'i2'
definition: 'int i2'
File: source\diag0225.c
(13,1): Warning! W011: all members are private
(30,7): Error! E186: attempt to modify a constant value
(32,9): Error! E186: attempt to modify a constant value
(65,10): Error! E062: only one type is allowed in declaration specifiers
(66,1): Error! E415: type cannot be defined in return type
semicolon (';') may be missing after class/enum definition
(82,10): Error! E241: class or namespace 'bli' has not been declared
(83,9): Error! E241: class or namespace 'pc' has not been declared
(82,10): Error! E029: symbol 'a' has not been declared
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?