diag386.chk

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

CHK
530
字号
  source conversion type is "int S327::*" 
  target conversion type is "int PRO338::*" 
(348,32): Error! E548: cannot access 'S327::f' through a protected base class 
  'int S327::f( void )' defined at: (333,9) 
  source conversion type is "int (S327::* )( void )" 
  target conversion type is "int (PRO338::* )( void )" 
(351,24): Error! E507: class for left operand is not derived from class for right operand 
  source conversion type is "int S327::*" 
  target conversion type is "int S341::*" 
(352,28): Error! E507: class for left operand is not derived from class for right operand 
  source conversion type is "int (S327::* )( void )" 
  target conversion type is "int (S341::* )( void )" 
(365,6): Error! E041: expression for '->' must be pointer to class, struct or union 
  operand type is 'int' 
(366,6): Error! E542: operand must be pointer to class or struct 
  expression type is 'int' 
(367,6): Error! E520: conversion ambiguity: [pointer] to [class of pointer to class member] 
  source conversion type is "A332 *" 
  target conversion type is "S327 *" 
(368,6): Error! E521: conversion of pointer to class of member pointer involves a private base class 
  source conversion type is "PRI335 *" 
  target conversion type is "S327 *" 
(369,6): Error! E522: conversion of pointer to class of member pointer involves a protected base class 
  source conversion type is "PRO338 *" 
  target conversion type is "S327 *" 
(370,6): Error! E519: cannot convert pointer to class of member pointer 
  source conversion type is "S341 *" 
  target conversion type is "S327 *" 
(372,6): Error! E524: conversion ambiguity: [object] to [class object of pointer to class member] 
  source conversion type is "A332 (lvalue)" 
  target conversion type is "S327 (lvalue)" 
(373,6): Error! E525: conversion of object to class of member pointer involves a private base class 
  source conversion type is "PRI335 (lvalue)" 
  target conversion type is "S327 (lvalue)" 
(374,6): Error! E526: conversion of object to class of member pointer involves a protected base class 
  source conversion type is "PRO338 (lvalue)" 
  target conversion type is "S327 (lvalue)" 
(375,6): Error! E523: cannot convert object to class of member pointer 
  source conversion type is "S341 (lvalue)" 
  target conversion type is "S327 (lvalue)" 
(376,7): Error! E517: left expression is not a class object 
(380,15): Error! E537: operand is not a valid pointer to class member 
  source conversion type is "int *" 
  target conversion type is "int S327::*" 
(382,9): Error! E537: operand is not a valid pointer to class member 
  source conversion type is "int *" 
  target conversion type is "int S327::*" 
(384,12): Error! E152: left operand is neither a pointer nor an arithmetic type 
  left operand type is 'int S327::* (lvalue)' 
  right operand type is 'int * (lvalue)' 
(386,11): Error! E153: right operand is neither a pointer nor an arithmetic type 
  left operand type is 'int * (lvalue)' 
  right operand type is 'int S327::* (lvalue)' 
(388,12): Error! E533: neither pointer to class member can be converted to the other 
(390,21): Error! E537: operand is not a valid pointer to class member 
  source conversion type is "int" 
  target conversion type is "int S327::*" 
(398,8): Error! E539: class of destructor must be class of object being destructed 
(399,14): Error! E540: destructor is not properly qualified 
(400,7): Error! E029: symbol 'q' has not been declared 
(405,23): Error! E541: pointers to class members reference different object types 
  source conversion type is "int S327::*" 
  target conversion type is "char S327::*" 
(410,9): Error! E543: expression must have 'void' type 
  expression type is 'int' 
(411,18): Error! E543: expression must have 'void' type 
  expression type is 'int (lvalue)' 
(412,16): Error! E544: expression types do not match for ':' operator 
  left operand type is 'S327' 
  right operand type is 'int' 
(413,9): Warning! W604: must look ahead to determine whether construct is a declaration/type or an expression 
(413,10): Warning! W595: construct resolved as an expression 
(413,10): Error! E554: expression must have type arithmetic, pointer, or pointer to class member 
(421,8): Error! E246: left expression is not a pointer to a constant object 
  left operand type is 'void * (lvalue)' 
  right operand type is 'int const *' 
(422,8): Error! E569: left expression is not a pointer to a volatile object 
  left operand type is 'void * (lvalue)' 
  right operand type is 'int volatile *' 
(427,9): Error! E473: function argument(s) do not match those in prototype 
  'void f420( int & )' defined at: (424,6) 
  cannot convert argument 1 defined at: (427,11) 
  source conversion type is "int volatile (lvalue)" 
  target conversion type is "int (lvalue)" 
(428,12): Error! E497: conversion of const or volatile reference to plain reference 
  source conversion type is "int volatile (lvalue)" 
  target conversion type is "int (lvalue)" 
(442,5): Error! E570: virtual function override for 'V426::f' is ambiguous 
  'void V426::f( void )' defined at: (431,18) 
  possible override is 'B432::f' 
  'void B432::f( void )' defined at: (437,18) 
  possible override is 'B429::f' 
  'void B429::f( void )' defined at: (434,18) 
(444,13): Error! E126: class 'S327' has already been defined 
(452,29): Error! E444: argument name 'p3' has already been used 
(449,23): Error! E587: conversion of expression for default argument is impossible 
  source conversion type is "S341 *" 
  target conversion type is "S327 *" 
(450,23): Error! E586: conversion ambiguity: [expression] to [type of default argument] 
  source conversion type is "A332 *" 
  target conversion type is "S327 *" 
(451,25): Error! E589: private base class accessed to convert default argument 
  source conversion type is "PRI335 *" 
  target conversion type is "S327 *" 
(452,25): Error! E590: protected base class accessed to convert default argument 
  source conversion type is "PRO338 *" 
  target conversion type is "S327 *" 
(453,17): Error! E116: unknown linkage 'Qwerty' 
(454,2): Error! E053: unknown preprocessing directive '#blah' 
(458,5): Warning! W013: unreachable code 
(463,40): Error! E197: type cannot be defined in this context 
(465,14): Error! E089: ## must not be at start or end of replacement tokens 
(491,16): Warning! W604: must look ahead to determine whether construct is a declaration/type or an expression 
(491,18): Warning! W594: construct resolved as a declaration/type 
(498,11): Warning! W007: "&array" may not produce intended result 
(503,5): Error! E006: syntax error; probable cause: missing ';' 
(504,1): Warning! W726: no reference to formal parameter 'n' 
  'char n' in 'void x501( char, char, char, char )' defined at: (501,13) 
(504,1): Warning! W726: no reference to formal parameter 's' 
  'char s' in 'void x501( char, char, char, char )' defined at: (501,21) 
(504,1): Warning! W726: no reference to formal parameter 'e' 
  'char e' in 'void x501( char, char, char, char )' defined at: (501,29) 
(504,1): Warning! W726: no reference to formal parameter 'w' 
  'char w' in 'void x501( char, char, char, char )' defined at: (501,37) 
(508,12): Error! E006: syntax error; probable cause: missing ';' 
(509,1): Warning! W014: no reference to symbol 'a' 
  'int * a' in 'void x506( void )' defined at: (508,10) 
(513,5): Error! E006: syntax error; probable cause: missing ';' 
Compiling generated function: S286::S286 
  'S286::S286( void )' defined at: (292,1) 
Error! E390: cannot generate default constructor to initialize 'S281 [10]' since constructors were declared 
Error! E610: 'S286::S286' could not be generated by the compiler 
  'S286::S286( void )' defined at: (292,1) 
File: ..\diagnose\source\diag0105.c 
(5,2): Error! E080: <assert.h> 
(7,2): Error! E080: <bios.h> 
(9,2): Error! E080: <complex.h> 
(11,2): Error! E080: <conio.h> 
(13,2): Error! E080: <ctype.h> 
(15,2): Error! E080: <direct.h> 
(17,2): Error! E080: <dos.h> 
(19,2): Error! E080: <dosfunc.h> 
(21,2): Error! E080: <env.h> 
(23,2): Error! E080: <errno.h> 
(25,2): Error! E080: <except.h> 
(27,2): Error! E080: <fcntl.h> 
(29,2): Error! E080: <float.h> 
(31,2): Error! E080: <fstream.h> 
(33,2): Error! E080: <generic.h> 
(35,2): Error! E080: <graph.h> 
(37,2): Error! E080: <graph98.h> 
(39,2): Error! E080: <i86.h> 
(41,2): Error! E080: <io.h> 
(43,2): Error! E080: <iomanip.h> 
(45,2): Error! E080: <iostream.h> 
(47,2): Error! E080: <limits.h> 
(49,2): Error! E080: <locale.h> 
(51,2): Error! E080: <malloc.h> 
(53,2): Error! E080: <math.h> 
(55,2): Error! E080: <new.h> 
(57,2): Error! E080: <pgchart.h> 
(59,2): Error! E080: <process.h> 
(61,2): Error! E080: <search.h> 
(63,2): Error! E080: <setjmp.h> 
(65,2): Error! E080: <share.h> 
(67,2): Error! E080: <signal.h> 
(69,2): Error! E080: <stdarg.h> 
(71,2): Error! E080: <stddef.h> 
(73,2): Error! E080: <stdio.h> 
(75,2): Error! E080: <stdiobuf.h> 
(77,2): Error! E080: <stdlib.h> 
(79,2): Error! E080: <streambu.h> 
(81,2): Error! E080: <string.h> 
(83,2): Error! E080: <strstrea.h> 
(85,2): Error! E080: <time.h> 
(87,2): Error! E080: <unistd.h> 
(89,2): Error! E080: <windows.h> 
(91,2): Error! E080: <wsample.h> 
(93,2): Error! E080: <sys/locking.h> 
(95,2): Error! E080: <sys/stat.h> 
(97,2): Error! E080: <sys/timeb.h> 
(99,2): Error! E080: <sys/types.h> 
(101,2): Error! E080: <sys/utime.h> 
(103,2): Error! E080: <custcntl.h> 
(105,2): Error! E080: <dde.h> 
(111,5): Error! E611: 'catch' does not immediately follow a 'try' or 'catch' 
(115,15): Warning! W604: must look ahead to determine whether construct is a declaration/type or an expression 
(115,26): Warning! W594: construct resolved as a declaration/type 
(117,12): Error! E492: 'delete' expression is not a pointer to data 
(118,12): Error! E490: 'delete' expression is a pointer to a function 
(122,22): Warning! W300: function 'x54' has already been declared as a friend 
  'void x54( void )' defined at: (109,6) 
(124,22): Warning! W299: 'x53' has already been declared as a friend 
(128,9): Error! E029: symbol 'b' has not been declared 
(129,9): Error! E019: BREAK may only appear in a for, do, while, or switch statement 
(130,5): Error! E020: CASE may only appear in a switch statement 
(132,13): Error! E021: CONTINUE may only appear in a for, do, or while statement 
(134,5): Error! E022: DEFAULT may only appear in a switch statement 
(138,32): Error! E182: invalid storage class for an argument 
(139,1): Error! E037: invalid storage class for function 
(139,1): Error! E238: 'x81' is not a function 
(141,13): Error! E177: invalid storage class in file scope 
(142,21): Error! E270: 'operator new' must have at least one argument 
  argument count is 0 for a non-member function 
(144,17): Error! E288: constructor cannot be a static member 
(148,18): Warning! W364: adjacent >=, <=, >, < operators 
(156,11): Warning! W001: assignment of constant found in boolean expression 
(157,15): Warning! W391: assignment found in boolean expression 
(158,21): Warning! W369: selection expression in switch statement is a constant value 
(162,17): Error! E027: only one DEFAULT per switch statement is allowed 
  previous 'default' label defined at: (161,17) 
(167,1): Error! E073: statement required after label 
(167,1): Warning! W017: label 'label' has not been referenced by a goto 
  label defined at: (166,10) 
(170,5): Error! E121: syntax error 
(171,5): Error! E121: syntax error 
(173,15): Error! E117: too many storage class specifiers 
(175,29): Error! E276: the second argument of 'operator ++' or 'operator --' must be 'int' 
(178,8): Warning! W627: text following pre-processor directive 
(181,27): Warning! W556: testing expression for 'for' is always false 
(183,11): Warning! W355: unsigned or pointer expression is never < 0 
File: ..\diagnose\source\diag0153.c 
(9,44): Error! E670: function modifier conflicts with previous declaration 'x4' 
  'void x4( int, int )' defined at: (8,6) 
(18,50): Error! E670: function modifier conflicts with previous declaration 'x13' 
  'void __pragma("goes_byebye") x13( int, int )' defined at: (17,30) 
(28,1): Error! E670: function modifier conflicts with previous declaration 'X15::x16' 
  'void X15::x16( int, int )' defined at: (21,10) 
(40,1): Error! E670: function modifier conflicts with previous declaration 'X15::x25' 
  'void __pragma("goes_byebye") X15::x25( int, int )' defined at: (24,34) 
(47,18): Warning! W579: pointer or reference truncated by cast 
(47,17): Error! E191: expression must be a pointer or a zero constant 
  expression type is 'unsigned' 
(56,30): Error! E273: the first argument of 'operator new' must be of type 'size_t' 
(57,28): Error! E273: the first argument of 'operator new' must be of type 'size_t' 
(58,27): Error! E273: the first argument of 'operator new' must be of type 'size_t' 
(70,31): Error! E671: function modifier cannot be used on a variable 
(87,1): Warning! W014: no reference to symbol 'seg' 
  '__segment seg' in 'void x76( void )' defined at: (82,15) 
(96,1): Warning! W014: no reference to symbol 'seg1' 
  '__segment seg1' in 'void x85( void )' defined at: (90,15) 
(96,1): Warning! W014: no reference to symbol 'seg2' 
  '__segment seg2' in 'void x85( void )' defined at: (91,15) 
File: ..\diagnose\source\diag0166.c 
(5,2): Error! E080: begin 10.0 specific diagnostics 
(11,34): Error! E607: #pragma aux must reference a "C" linkage function 'two_cpps' 
  'void two_cpps( char, char )' defined at: (10,6) 
(24,34): Error! E607: #pragma aux must reference a "C" linkage function 'many_cpp' 
  template function 'void many_cpp( ?, ? )' defined at: (23,10) 
(30,2): Error! E080: end 10.0 specific diagnostics 
(37,14): Error! E682: cannot inherit a class that contains a zero size array 
(45,13): Error! E683: zero size array 'D::a' cannot be used in a class with base classes 
  'char D::a[]' defined at: (45,10) 
(49,13): Error! E681: zero size array must be the last data member 
(53,11): Error! E681: zero size array must be the last data member 
(57,15): Error! E681: zero size array must be the last data member 
File: ..\diagnose\source\diag0168.c 
(29,10): Warning! W005: pointer or reference truncated 
(30,10): Warning! W005: pointer or reference truncated 
File: ..\diagnose\source\diag0173.c 
(13,2): Error! E080: no warning anymore 
File: ..\diagnose\source\diag0261.c 
(32,2): Error! E080: at least one error 
I did not generate errors for diag0274 

⌨️ 快捷键说明

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