diag0000.chk

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

CHK
1,181
字号
File: source\diag0001.c
(13,17): Error! E048: bit-field width must be positive
(16,18): Error! E046: bit-field width is too large
(20,18): Error! E046: bit-field width is too large
(22,17): Error! E048: bit-field width must be positive
(25,19): Error! E046: bit-field width is too large
(29,19): Error! E046: bit-field width is too large
(31,17): Error! E048: bit-field width must be positive
(34,19): Error! E046: bit-field width is too large
(38,19): Error! E046: bit-field width is too large
(42,12): Error! E141: bit-field declaration must have a base type specified
(44,18): Error! E142: illegal qualification of a bit-field declaration
(45,19): Error! E142: illegal qualification of a bit-field declaration
(46,18): Error! E142: illegal qualification of a bit-field declaration
(52,15): Error! E140: bit-field declaration cannot have a storage class specifier
(54,14): Error! E049: bit-field base type must be an integral type
(55,15): Error! E047: width of a named bit-field must not be zero
(56,1): Error! E370: constructor is required for a class with a const member
File: source\diag0002.c
(4,29): Error! E143: duplicate base qualifier
(4,29): Warning! W188: base class is inherited with private access
(7,28): Error! E144: only one access specifier is allowed
File: source\diag0003.c
(7,14): Error! E110: union cannot be used as a base class
(13,13): Error! E111: union cannot have a base class
(16,14): Error! E641: cannot inherit a partially defined base class 'E'
File: source\diag0004.c
(12,18): Error! E113: repeated direct base class will cause ambiguities
(16,26): Error! E113: repeated direct base class will cause ambiguities
(18,11): Error! E126: class 'X3' has already been defined
(20,14): Error! E641: cannot inherit a partially defined base class 'Z'
File: source\diag0005.c
(15,17): Error! E168: static data members are not allowed in an union
(16,29): Error! E109: virtual member functions are not allowed in a union
(17,29): Error! E109: virtual member functions are not allowed in a union
(18,17): Error! E169: invalid storage class for a member
(19,20): Error! E318: unions cannot have members with user-defined assignment operators
(20,18): Error! E183: unions cannot have members with constructors
(21,18): Error! E317: unions cannot have members with destructors
File: source\diag0006.c
(5,22): Error! E170: declaration is too complicated
(21,49): Error! E124: expression is too complicated
(28,9): Error! E121: syntax error
(37,1): Warning! W205: declaration statement cannot follow a while statement
(37,1): Warning! W014: no reference to symbol 'a'
  definition: 'int a' in 'void bi_expr( void )'
(48,22): Error! E171: exception declaration is too complicated
(51,1): Error! E624: catch block does not immediately follow try block
(60,22): Error! E184: statement is too complicated
File: source\diag0007.c
(5,9): Error! E172: floating-point constant too large to represent
(6,10): Error! E172: floating-point constant too large to represent
(7,9): Error! E173: floating-point constant too small to represent
File: source\diag0008.c
(7,28): Error! E175: range of enum constants cannot be represented
(9,1): Error! E175: range of enum constants cannot be represented
(13,29): Error! E175: range of enum constants cannot be represented
File: source\diag0009.c
(22,12): Error! E584: constructor for variable 'a' cannot be bypassed
  definition: 'S a' in 'void test2( void )'
(76,10): Error! E584: constructor for variable 'a' cannot be bypassed
  definition: 'S a' in 'void test5( void )'
(96,12): Error! E584: constructor for variable 'a' cannot be bypassed
  definition: 'S a' in 'void test7( void )'
File: source\diag0010.c
(12,18): Error! E085: maximum class size has been exceeded
File: source\diag0011.c
(5,1): Warning! W014: no reference to symbol 'fp'
  definition: 'void (* fp)( int, int )' in 'void foo( void )'
(5,1): Warning! W014: no reference to symbol 'a'
  definition: 'int a' in 'void foo( void )'
(11,9): Warning! W836: symbol has different type than previous symbol in same declaration
  companion definition is 'a'
  definition: 'int a'
(15,9): Warning! W628: expression is not meaningful
(15,24): Warning! W387: expression is useful only for its side effects
(20,12): Warning! W836: symbol has different type than previous symbol in same declaration
  companion definition is 'a'
  definition: 'int a' in 'void decl( void )'
(20,12): Warning! W750: function prototype in block scope missing 'extern'
  function prototype is 'int ( int )'
(20,27): Error! E195: 'sizeof' is not allowed for a function
(20,24): Warning! W836: symbol has different type than previous symbol in same declaration
  companion definition is 'a'
  definition: 'int a' in 'void decl( void )'
(21,1): Warning! W014: no reference to symbol 'a'
  definition: 'int a' in 'void decl( void )'
(21,1): Warning! W014: no reference to symbol 'c'
  definition: 'int c[1]' in 'void decl( void )'
(25,17): Warning! W597: encountered another ambiguous construct during disambiguation
(25,12): Warning! W836: symbol has different type than previous symbol in same declaration
  companion definition is 'a'
  definition: 'int a' in 'void expr_decl( void )'
(25,12): Warning! W750: function prototype in block scope missing 'extern'
  function prototype is 'int ( int )'
(25,24): Error! E195: 'sizeof' is not allowed for a function
(25,22): Warning! W836: symbol has different type than previous symbol in same declaration
  companion definition is 'a'
  definition: 'int a' in 'void expr_decl( void )'
(26,1): Warning! W014: no reference to symbol 'a'
  definition: 'int a' in 'void expr_decl( void )'
(26,1): Warning! W014: no reference to symbol 'c'
  definition: 'int c[1]' in 'void expr_decl( void )'
File: source\diag0012.c
(1,21): Error! E083: function cannot return a function
(3,22): Error! E082: function cannot return an array
(5,19): Error! E081: cannot define an array of functions
(7,11): Error! E218: cannot define an array of void
(9,9): Error! E220: cannot define a reference to void
(9,9): Error! E394: reference object must be initialized
(11,10): Error! E221: cannot define a reference to another reference
(13,12): Error! E219: cannot define an array of references
(13,12): Error! E394: reference object must be initialized
(15,9): Error! E222: cannot define a pointer to a reference
(17,7): Error! E224: 'i' is a variable of type void
(22,7): Error! E224: 'l' is a variable of type void
(23,4): Error! E224: 'm' is a variable of type void
File: source\diag0013.c
(14,17): Error! E226: function 'fi' is not distinct
  definition: 'void fi( int )'
(21,7): Error! E227: overloaded function is ambiguous for arguments used in call
  ambiguous function: void ff( float ) defined at: (16,6)
  ambiguous function: void ff( double ) defined at: (17,6)
(22,7): Error! E189: overloaded function cannot be selected for arguments used in call
  rejected function: void ff( float ) defined at: (16,6)
  rejected function: void ff( double ) defined at: (17,6)
(37,5): Error! E229: function 'foo' has already been defined
  definition: 'int foo( int )'
(43,24): Error! E907: redeclaration of member function 'A::operator int ' not allowed
  definition: 'A::operator int ()'
(44,30): Error! E226: function 'A::operator int ' is not distinct
  definition: 'A::operator int ()'
(51,23): Error! E226: function 'bar' is not distinct
  definition: 'int bar( int, char )'
(52,25): Error! E385: attempt to overload function 'bar' with a different return type
  definition: 'float bar( char *, float )'
File: source\diag0014.c
(2,25): Error! E232: user-defined conversion must be a function
(6,28): Error! E233: user-defined conversion has an argument list
(10,26): Error! E231: user-defined conversion has a return type
(11,26): Error! E231: user-defined conversion has a return type
(15,12): Error! E235: destructor must be a function
(19,15): Error! E234: destructor cannot have a return type
(23,11): Error! E234: destructor cannot have a return type
(27,11): Error! E235: destructor must be a function
(31,22): Error! E236: destructor has an argument list
(32,14): Error! E236: destructor has an argument list
(36,27): Error! E237: 'operator +' must be a function
File: source\diag0015.c
(2,25): Error! E243: default arguments are not part of a function's type
(5,39): Error! E244: missing default arguments
(5,39): Error! E243: default arguments are not part of a function's type
(6,33): Error! E244: missing default arguments
(10,27): Warning! W744: 'operator +' does not have a return type specified (int assumed)
(10,27): Error! E245: overloaded operator cannot have default arguments
(15,38): Warning! W248: using default arguments would be overload ambiguous with 'fn2'
  definition: 'int fn2( int, int )'
(18,38): Warning! W249: using default arguments would be overload ambiguous with 'fn3' using default arguments
  definition: 'int fn3( int, int [, int ])'
(18,38): Warning! W248: using default arguments would be overload ambiguous with 'fn3'
  definition: 'int fn3( int, int, int )'
(32,46): Error! E247: cannot redefine default argument for 'foo'
  definition: 'int foo( int, int [, int, int ])'
(32,46): Error! E247: cannot redefine default argument for 'foo'
  definition: 'int foo( int, int, int [, int ])'
(36,41): Warning! W249: using default arguments would be overload ambiguous with 'fubar' using default arguments
  definition: 'void fubar( int [, int, ... ])'
File: source\diag0016.c
(5,13): Error! E253: '::' qualifier cannot be used in this context
(27,1): Error! E254: 'S::foo' has not been declared as a member
  definition: 'void S::foo( double )'
(33,10): Error! E252: class declaration has not been seen for '~T'
(33,8): Error! E539: class of destructor must be class of object being destructed
File: source\diag0017.c
(10,13): Warning! W188: base class is inherited with private access
(11,9): Error! E257: access declarations may only be 'public' or 'protected'
(13,9): Error! E427: 'z' has not been declared as a member
(14,9): Error! E427: 'd' has not been declared as a member
(15,9): Error! E259: class in access declaration ('Q') must be a direct base class
(25,9): Error! E328: storage class of 'D::a' conflicts with previous declaration
  definition: 'int D::a'
(25,9): Error! E042: symbol 'D::a' already defined
  definition: 'int D::a'
(26,9): Error! E261: cannot grant access to 'b'
(29,9): Error! E262: cannot reduce access to 'a'
(30,10): Error! E042: symbol 'D::c' already defined
  definition: 'B D::c'
(40,9): Error! E260: overloaded functions ('f') do not have the same access
File: source\diag0018.c
(1,3): Error! E252: class declaration has not been seen for '~Q'
(2,1): Error! E265: destructor must be a non-static member function
(6,1): Error! E264: user-defined conversion must be a non-static member function
(11,1): Warning! W744: 'operator --' does not have a return type specified (int assumed)
(11,1): Error! E269: 'operator --' must have either one argument or two arguments
  argument count is 0 for a non-member function
(11,1): Error! E278: 'operator --' must take at least one argument of a class/enum or a reference to a class/enum
(15,25): Warning! W744: 'operator --' does not have a return type specified (int assumed)
(19,32): Error! E269: 'operator ++' must have either one argument or two arguments
  argument count is 3 since there is an implicit 'this' argument
(23,1): Warning! W744: 'operator []' does not have a return type specified (int assumed)
(23,1): Error! E266: 'operator []' must be a non-static member function
(27,28): Warning! W744: 'operator []' does not have a return type specified (int assumed)
(27,28): Error! E268: 'operator []' must have two arguments
  argument count is 3 since there is an implicit 'this' argument
(28,23): Warning! W744: 'operator []' does not have a return type specified (int assumed)
(32,1): Warning! W744: 'operator ()' does not have a return type specified (int assumed)
(32,1): Error! E266: 'operator ()' must be a non-static member function
(36,1): Warning! W744: 'operator =' does not have a return type specified (int assumed)
(36,1): Error! E266: 'operator =' must be a non-static member function
(40,28): Warning! W744: 'operator =' does not have a return type specified (int assumed)
(40,28): Error! E268: 'operator =' must have two arguments
  argument count is 3 since there is an implicit 'this' argument
(41,23): Warning! W744: 'operator =' does not have a return type specified (int assumed)
(45,1): Warning! W744: 'operator +' does not have a return type specified (int assumed)
(45,1): Error! E269: 'operator +' must have either one argument or two arguments
  argument count is 3 for a non-member function
(45,1): Error! E278: 'operator +' must take at least one argument of a class/enum or a reference to a class/enum
(49,28): Warning! W744: 'operator +' does not have a return type specified (int assumed)
(49,28): Error! E269: 'operator +' must have either one argument or two arguments
  argument count is 3 since there is an implicit 'this' argument
(50,23): Warning! W744: 'operator +' does not have a return type specified (int assumed)
(54,1): Warning! W744: 'operator ~' does not have a return type specified (int assumed)
(54,1): Error! E267: 'operator ~' must have one argument
  argument count is 3 for a non-member function
(54,1): Error! E278: 'operator ~' must take at least one argument of a class/enum or a reference to a class/enum
(58,1): Warning! W744: 'operator +=' does not have a return type specified (int assumed)
(58,1): Error! E268: 'operator +=' must have two arguments
  argument count is 3 for a non-member function
(58,1): Error! E278: 'operator +=' must take at least one argument of a class/enum or a reference to a class/enum
File: source\diag0019.c
(27,1): Warning! W744: 'operator ->' does not have a return type specified (int assumed)
(27,1): Error! E266: 'operator ->' must be a non-static member function
(32,30): Error! E267: 'operator ->' must have one argument
  argument count is 2 since there is an implicit 'this' argument
(34,25): Error! E267: 'operator ->' must have one argument
  argument count is 2 since there is an implicit 'this' argument
(35,29): Error! E267: 'operator ->' must have one argument

⌨️ 快捷键说明

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