diag0200.chk
来自「开放源码的编译器open watcom 1.6.0版的源代码」· CHK 代码 · 共 1,099 行 · 第 1/5 页
CHK
1,099 行
(104,16): Error! E284: nested type 'S8_2' cannot be declared in this class
(108,15): Error! E358: 'S8_3' referenced as a union
(108,15): Error! E284: nested type 'S8_3' cannot be declared in this class
(119,26): Error! E169: invalid storage class for a member
(123,1): Error! E254: 'S9::funct' has not been declared as a member
'short S9::funct( float )' defined at: (122,11)
(128,21): Error! E229: function 'S9::c' has already been defined
'int S9::c( int )' defined at: (127,9)
(129,21): Error! E121: syntax error
(130,15): Error! E326: defining 's10' is not possible because its type has unknown size
'S10 s10' defined at: (130,12)
(141,22): Error! E287: constructor cannot have a return type
(142,23): Error! E234: destructor cannot have a return type
(146,25): Error! E287: constructor cannot have a return type
(147,26): Error! E234: destructor cannot have a return type
(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
'unsigned long volatile S16::func3( int * )' defined at: (172,28)
(167,36): Error! E204: 'this' pointer is not defined
(177,35): Error! E254: 'S16::b' has not been declared as a member
'float __far * S16::b[17]' defined at: (177,28)
(183,22): Error! E416: data members cannot be initialized inside a class definition
(184,28): Error! E416: data members cannot be initialized inside a class definition
(185,21): Error! E498: syntax error before 'sqrt'; probable cause: incorrectly spelled type name
(186,27): Error! E029: symbol 'sqrt' has not been declared
(187,1): Error! E121: syntax error
(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 an 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'
'int __far * some_var3' defined at: (270,18)
(277,2): Error! E313: anonymous struct/union contains a function member 'func'
'int func( int )' defined at: (275,9)
(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): Error! E146: 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
'int enclose::inner::f2( int )' defined at: (336,13)
(348,33): Error! E254: 'inner::f2' has not been declared as a member
'void enclose::inner::f2( int )' defined at: (348,22)
(349,6): Error! E374: object (or object pointer) required to access non-static data member
(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
'int enclose::private_si' defined at: (321,16)
(354,28): Error! E148: access to private member 'inner::private_inner_si' is not allowed
'int enclose::inner::private_inner_si' defined at: (331,20)
(357,6): Error! E374: object (or object pointer) required to access non-static data member
(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
'int enclose::private_si' defined at: (321,16)
(366,27): Error! E385: attempt to overload function 'inner_friend' with a different return type
'int inner_friend( int )' defined at: (329,20)
(367,13): Error! E374: object (or object pointer) required to access non-static data member
(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
'int enclose::private_si' defined at: (321,16)
(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 ';'
(461,7): Warning! W604: must look ahead to determine whether construct is a declaration/type or an expression
(467,5): Warning! W594: construct resolved as a declaration/type
(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
'int S9::b( int )' defined at: (117,9)
(473,5): Error! E467: cannot call a non-volatile function for a volatile object
'int S9::b( int )' defined at: (117,9)
(474,5): Error! E516: class for object is not defined
'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'
'int __far * some_var3' in 'void main( void )' defined at: (487,22)
(502,12): Error! E149: access to protected member 'U7::pro1' is not allowed
'int U7::pro1' defined at: (287,9)
(503,12): Error! E149: access to protected member 'U7::pro2' is not allowed
'float U7::pro2' defined at: (288,11)
(504,12): Error! E148: access to private member 'U7::pri1' is not allowed
'long U7::pri1' defined at: (293,10)
(505,12): Error! E148: access to private member 'U7::s' is not allowed
'SOK U7::s' defined at: (294,9)
(508,17): Error! E149: access to protected member 'U7::prof' is not allowed
'int U7::prof( int )' defined at: (290,9)
(509,17): Error! E148: access to private member 'U7::prif' is not allowed
'int U7::prif( int )' defined at: (296,9)
(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: function members must be inline in a local class
(547,12): Error! E148: access to private member 'LOCAL::local_int' is not allowed
'int LOCAL::local_int' in 'void main( void )' defined at: (535,13)
(549,22): Error! E148: access to private member 'LOCAL::priv_func' is not allowed
'int LOCAL::priv_func( int )' in 'void main( void )' defined at: (537,13)
(551,1): Warning! W014: no reference to symbol 'bs1'
'S1 bs1' in 'void main( void )' defined at: (449,8)
(551,1): Warning! W014: no reference to symbol 'bs2'
'S2 bs2' in 'void main( void )' defined at: (450,8)
(551,1): Warning! W014: no reference to symbol 'bs3'
'S1 bs3' in 'void main( void )' defined at: (461,9)
(551,1): Warning! W014: no reference to symbol 'name_that_is_duplicated'
'int name_that_is_duplicated' in 'void main( void )' defined at: (478,9)
(551,1): Warning! W018: no reference to anonymous union member 'some_var'
'int some_var' defined at: (480,13)
(551,1): Warning! W014: no reference to symbol 'bfp'
'int * bfp' in 'void main( void )' defined at: (523,15)
(551,1): Warning! W014: no reference to symbol 'bfr'
'int & bfr' in 'void main( void )' defined at: (525,15)
(551,1): Warning! W014: no reference to symbol 'LOCAL::func'
'int LOCAL::func( int )' in 'void main( void )' defined at: (542,13)
End of file
Warning! W014: no reference to symbol 'x4'
'int const x4' defined at: (186,22)
Warning! W018: no reference to anonymous union member 'float_var'
'float float_var' defined at: (255,11)
Warning! W018: no reference to anonymous union member 'some_float'
'float some_float' defined at: (259,11)
Warning! W018: no reference to anonymous union member 'some_float2'
'float some_float2' defined at: (263,11)
File: ..\diagnose\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): Error! E146: unexpected storage class specifier found
(20,61): Error! E370: constructor is required for a class with a const member
(20,62): Error! E146: unexpected storage class specifier found
(21,33): Error! E146: unexpected storage class specifier found
(22,46): Error! E146: 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
'int i1' defined at: (32,12)
(39,14): Error! E328: storage class of 'i3' conflicts with previous declaration
'int i3' defined at: (38,5)
(39,14): Error! E042: symbol 'i3' already defined
'int i3' defined at: (38,5)
(42,14): Error! E328: storage class of 'i4' conflicts with previous declaration
'int i4' defined at: (41,8)
(42,14): Error! E042: symbol 'i4' already defined
'int i4' defined at: (41,8)
(51,8): Error! E435: cannot convert a type of unknown size
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
(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): Error! E145: 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
'i11' defined at: (75,14)
(81,1): Warning! W014: no reference to symbol 'i11'
'int i11' in 'void f5( void )' defined at: (80,9)
(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'
'S1' defined at: (83,8)
(88,20): Error! E125: invalid redefinition of the typedef name 'complex'
'complex' defined at: (87,7)
(91,12): Error! E457: 'I' was previously declared as a typedef
'I' defined at: (90,13)
(91,9): Error! E006: syntax error; probable cause: missing ';'
(92,14): Error! E457: 'I' was previously declared as a typedef
'I' defined at: (90,13)
(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
'colour orange' defined at: (107,14)
(112,8): Error! E042: symbol 'i15' already defined
'something i15' defined at: (110,17)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?