diag0200.chk

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

CHK
1,183
字号
(45,10): Warning! W005: pointer or reference truncated
  'NONPODS' defined at: (10,8)
  source conversion type is 'NONPODS __far (lvalue)'
  target conversion type is 'NONPODS const (lvalue)'
(46,5): Error! E161: attempt to call member function for far object when the data model is near
  'NONPODS' defined at: (10,8)
  definition: 'NONPODS & NONPODS::operator =( NONPODS const & )'
(49,5): Error! E160: attempt to destroy a far object when data model is near
  'PODS' defined at: (6,8)
  definition: 'PODS::~PODS( void )'
(52,5): Error! E160: attempt to destroy a far object when data model is near
  'NONPODS' defined at: (10,8)
  definition: 'NONPODS::~NONPODS( void )'
(55,15): Warning! W005: pointer or reference truncated
  'PODS' defined at: (6,8)
  source conversion type is 'PODS __far (lvalue)'
  target conversion type is 'PODS const (lvalue)'
(58,18): Warning! W005: pointer or reference truncated
  'NONPODS' defined at: (10,8)
  source conversion type is 'NONPODS __far (lvalue)'
  target conversion type is 'NONPODS const (lvalue)'
(61,10): Warning! W005: pointer or reference truncated
  'NONPODS' defined at: (10,8)
  source conversion type is 'NONPODS __far (lvalue)'
  target conversion type is 'NONPODS const (lvalue)'
(64,10): Warning! W005: pointer or reference truncated
  'PODS' defined at: (6,8)
  source conversion type is 'PODS __far (lvalue)'
  target conversion type is 'PODS const (lvalue)'
(67,10): Warning! W005: pointer or reference truncated
  'NONPODS' defined at: (10,8)
  source conversion type is 'NONPODS __far (lvalue)'
  target conversion type is 'NONPODS (lvalue)'
(70,10): Warning! W005: pointer or reference truncated
  'PODS' defined at: (6,8)
  source conversion type is 'PODS __far (lvalue)'
  target conversion type is 'PODS (lvalue)'
(73,10): Warning! W005: pointer or reference truncated
  'NONPODS' defined at: (10,8)
  source conversion type is 'NONPODS __far (lvalue)'
  target conversion type is 'NONPODS const (lvalue)'
File: source\diag0217.c
(11,10): Error! E186: attempt to modify a constant value
(12,10): Error! E186: attempt to modify a constant value
File: source\diag0218.c
(1,26): Warning! W725: "hello"
(8,5): Warning! W013: unreachable code
(16,9): Warning! W013: unreachable code
(25,5): Warning! W013: unreachable code
(27,1): Error! E003: missing return value
(35,13): Warning! W013: unreachable code
(46,13): Warning! W013: unreachable code
(49,1): Error! E003: missing return value
(57,13): Warning! W013: unreachable code
(60,1): Error! E003: missing return value
(75,26): Warning! W725: "hello"
(76,18): Error! E028: expecting ')' but found '/'
(76,20): Error! E028: expecting 'end of line' but found ')'
(77,15): Error! E080: there.
(78,15): Error! E028: expecting 'end of line' but found '/'
(83,1): Warning! W014: no reference to symbol 'c'
  definition: 'int c' in 'int x76( int, int )'
(83,1): Warning! W014: no reference to symbol 'd'
  definition: 'int d' in 'int x76( int, int )'
(83,1): Warning! W726: no reference to formal parameter 'a'
  definition: 'int a' in 'int x76( int, int )'
(83,1): Warning! W726: no reference to formal parameter 'b'
  definition: 'int b' in 'int x76( int, int )'
(85,37): Error! E329: modifiers of 'x83' conflict with previous declaration
  definition: 'int __export x83'
  current declaration has type 'int __declspec(dllimport)'
(85,37): Error! E042: symbol 'x83' already defined
  definition: 'int __export x83'
(87,37): Error! E329: modifiers of 'x85' conflict with previous declaration
  definition: 'int __export x85'
  current declaration has type 'int __declspec(dllimport)'
(87,37): Error! E042: symbol 'x85' already defined
  definition: 'int __export x85'
(91,16): Error! E417: only virtual functions may be declared pure
(92,16): Error! E417: only virtual functions may be declared pure
(92,19): Error! E137: pure member function constant must be '0'
(94,27): Error! E137: pure member function constant must be '0'
(103,10): Error! E186: attempt to modify a constant value
(104,10): Error! E186: attempt to modify a constant value
File: source\diag0219.c
(9,18): Error! E328: storage class of 'g' conflicts with previous declaration
  definition: 'char * g( void )'
(30,6): Error! E042: symbol 'a' already defined
  definition: 'int a'
(34,13): Error! E328: storage class of 'c' conflicts with previous declaration
  definition: 'int c'
(34,13): Error! E042: symbol 'c' already defined
  definition: 'int c'
(36,13): Error! E328: storage class of 'd' conflicts with previous declaration
  definition: 'int d'
(36,13): Error! E042: symbol 'd' already defined
  definition: 'int d'
End of file
Warning! W014: no reference to symbol 'f'
  definition: 'char * f( void )'
Warning! W014: no reference to symbol 'a'
  definition: 'int a'
Warning! W014: no reference to symbol 'b'
  definition: 'int b'
File: source\diag0220.c
(85,6): Error! E686: attempt to convert pointer or reference from a base to a derived class
  'D72' defined at: (72,8)
  source conversion type is 'B69 (lvalue)'
  target conversion type is 'D72 (lvalue)'
(86,6): Error! E686: attempt to convert pointer or reference from a base to a derived class
  source conversion type is 'B69 *'
  target conversion type is 'D72 *'
(106,6): Error! E342: private base class accessed to convert cast expression
  'B' defined at: (91,11)
  source conversion type is 'D (lvalue)'
  target conversion type is 'B (lvalue)'
(128,6): Error! E801: cannot cast to ambiguous base class
  'A' defined at: (111,11)
  source conversion type is 'D (lvalue)'
  target conversion type is 'A (lvalue)'
File: source\diag0221.c
(2,39): Warning! W399: 'new' expression allocates a const or volatile object
(2,12): Error! E324: conversion of return value is impossible
  source conversion type is 'unsigned long const *'
  target conversion type is 'unsigned long volatile *'
(20,12): Error! E148: access to private member 'F12::operator int ' is not allowed
  definition: 'F12::operator int ()'
(21,13): Error! E148: access to private member 'F12::operator int ' is not allowed
  definition: 'F12::operator int ()'
(36,21): Error! E316: anonymous struct/union member 'T' is not distinct in enclosing scope
(44,5): Error! E727: cannot dereference a pointer to void
  operand type is 'void *'
(45,9): Error! E727: cannot dereference a pointer to void
  operand type is 'void *'
(46,10): Error! E727: cannot dereference a pointer to void
  operand type is 'void *'
(47,5): Error! E196: 'sizeof' is not allowed for type void
(98,12): Error! E253: '::' qualifier cannot be used in this context
(98,12): Error! E336: declaration specifiers are required to declare 'q'
(99,12): Error! E241: class or namespace 'D' has not been declared
(111,10): Error! E547: cannot access 'BB::n' through a private base class
  definition: 'int X95::BB::n'
(116,11): Error! E079: missing ')' for expansion of 'x115' macro
  macro 'x115' defined at: (115,9)
(116,11): Error! E762: binary operator '+' missing right operand
(137,14): Warning! W086: definition of macro 'X136' not identical to previous definition
  macro 'X136' defined at: (136,9)
File: source\diag0222.c
(12,1): Warning! W188: base class is inherited with private access
(36,13): Error! E394: reference object must be initialized
(37,16): Error! E394: reference object must be initialized
(39,18): Error! E686: attempt to convert pointer or reference from a base to a derived class
  'INHERIT' defined at: (11,7)
  source conversion type is 'BASE (lvalue)'
  target conversion type is 'INHERIT (lvalue)'
(40,23): Error! E220: cannot define a reference to void
(40,23): Error! E394: reference object must be initialized
(42,10): Error! E342: private base class accessed to convert cast expression
  'BASE' defined at: (5,7)
  source conversion type is 'INHERIT (lvalue)'
  target conversion type is 'BASE const (lvalue)'
(45,8): Error! E473: function argument(s) do not match those in prototype
  definition: 'void fir( INHERIT & )'
  cannot convert argument 1 defined at: (45,10)
  source conversion type is 'BASE (lvalue)'
  target conversion type is 'INHERIT (lvalue)'
(46,8): Error! E473: function argument(s) do not match those in prototype
  definition: 'void fir( INHERIT & )'
  cannot convert argument 1 defined at: (46,10)
  source conversion type is 'BASE (lvalue)'
  target conversion type is 'INHERIT (lvalue)'
(47,8): Error! E475: cannot assign right expression to class object
  definition: 'INHERIT & INHERIT::operator =( INHERIT const & )'
  cannot convert argument 1 defined at: (47,10)
  source conversion type is 'BASE (lvalue)'
  target conversion type is 'INHERIT const (lvalue)'
(48,1): Warning! W014: no reference to symbol 'bad_ref_void'
  definition: 'void & bad_ref_void' in 'void main( void )'
File: source\diag0223.c
(17,11): Error! E126: class 'S2' has already been defined
(18,11): Error! E126: class 'S2' has already been defined
(27,23): Error! E003: missing return value
(30,16): Error! E498: syntax error before 's'; probable cause: incorrectly spelled type name
(36,1): Error! E370: constructor is required for a class with a const member
(42,15): Error! E336: declaration specifiers are required to declare 'S3_1'
(42,6): Error! E498: syntax error before 'gs3_1_new'; probable cause: incorrectly spelled type name
(48,12): Error! E042: symbol 'S4::i' already defined
  definition: 'int S4::i'
(50,13): Error! E258: cannot declare both a function and variable of the same name ('a')
(54,24): Error! E254: 'S4::new_member' has not been declared as a member
  definition: 'int S4::new_member( int )'
(59,12): Error! E898: in-class initialization is only allowed for const static integral members
(60,18): Error! E898: in-class initialization is only allowed for const static integral members
(61,16): Error! E118: nameless declaration is not allowed
(61,16): Error! E006: syntax error; probable cause: missing ';'
(62,26): Error! E177: invalid storage class in file scope
(64,15): Error! E177: invalid storage class in file scope
(65,12): Error! E336: declaration specifiers are required to declare 'array'
(65,12): Error! E121: syntax error
(66,10): Error! E336: declaration specifiers are required to declare 'wrong'
(66,10): Error! E121: syntax error
(68,11): Error! E326: defining 'bs5' is not possible because its type has unknown size
  definition: 'S5 bs5'
(70,2): Error! E121: syntax error
(75,15): Error! E127: 'sizeof' is not allowed for an undefined type
(77,32): Error! E121: syntax error
(78,32): Error! E121: syntax error
(78,36): Error! E003: missing return value
(78,36): Warning! W726: no reference to formal parameter 'i'
  definition: 'int i' in 'int S6::g( int )'
(84,25): Error! E036: dimensions of multi-dimension array must be specified
(84,25): Error! E681: zero size array must be the last data member
(84,25): Error! E326: defining 'S7::ia' is not possible because its type has unknown size
  definition: 'int S7::ia[4][][16]'
(85,32): Error! E036: dimensions of multi-dimension array must be specified
(85,32): Error! E681: zero size array must be the last data member
(85,32): Error! E326: defining 'S7::ua' is not possible because its type has unknown size
  definition: 'unsigned S7::ua[12][256][]'
(91,18): Error! E284: nested type 'S8' cannot be declared in this class
(92,23): Error! E285: enumerator 'S8' cannot be declared in this class
(96,6): Error! E316: anonymous struct/union member 'S8' is not distinct in enclosing scope
(100,15): Error! E284: nested type 'S8_1' cannot be declared in this class
(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
  definition: 'short S9::funct( float )'
(128,21): Error! E229: function 'S9::c' has already been defined
  definition: 'int S9::c( int )'
(129,21): Error! E121: syntax error
(130,15): Error! E326: defining 's10' is not possible because its type has unknown size
  definition: 'S10 s10'
(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

⌨️ 快捷键说明

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