diag386.chk

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

CHK
548
字号
(352,28): Error! E507: class for target operand is not derived from class for source 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! E801: cannot cast to ambiguous base class
  'S327' defined at: (331,8)
  source conversion type is 'A332 (lvalue)'
  target conversion type is 'S327 (lvalue)'
(373,6): Error! E342: private base class accessed to convert cast expression
  'S327' defined at: (331,8)
  source conversion type is 'PRI335 (lvalue)'
  target conversion type is 'S327 (lvalue)'
(374,6): Error! E346: protected base class accessed to convert cast expression
  'S327' defined at: (331,8)
  source conversion type is 'PRO338 (lvalue)'
  target conversion type is 'S327 (lvalue)'
(375,6): Error! E523: cannot convert object to class of member pointer
  'S327' defined at: (331,8)
  source conversion type is 'S341 (lvalue)'
  target conversion type is 'S327 (lvalue)'
(376,7): Error! E517: left expression is not a class object
(380,12): Error! E535: right operand is not a valid pointer to class member
  source conversion type is 'int *'
  target conversion type is 'int S327::*'
(382,11): Error! E534: left operand is not a valid pointer to class member
  source conversion type is 'int S327::*'
  target conversion type is 'int *'
(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
  source conversion type is 'int S327::*'
  target conversion type is 'int S341::*'
(390,19): Error! E809: type cannot be used with an explicit cast
  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
  'S341' defined at: (349,8)
(399,14): Error! E540: destructor is not properly qualified
  'S384' defined at: (392,8)
(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! E853: conversion to common class type is impossible
  'S327' defined at: (331,8)
  left operand type is 'S327'
  right operand type is 'int'
(413,10): Error! E899: cannot convert expression to target type
  source conversion type is 'S327 (lvalue)'
  target conversion type is 'bool'
(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
  definition: 'void f420( int & )'
  cannot convert argument 1 defined at: (427,11)
  source conversion type is 'int volatile (lvalue)'
  target conversion type is 'int (lvalue)'
(428,12): Error! E820: conversion of volatile reference to non-volatile 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
  definition: 'void V426::f( void )'
  possible override is 'B432::f'
  definition: 'void B432::f( void )'
  possible override is 'B429::f'
  definition: 'void B429::f( void )'
(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
(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'
  definition: 'char n' in 'void x501( char, char, char, char )'
(504,1): Warning! W726: no reference to formal parameter 's'
  definition: 'char s' in 'void x501( char, char, char, char )'
(504,1): Warning! W726: no reference to formal parameter 'e'
  definition: 'char e' in 'void x501( char, char, char, char )'
(504,1): Warning! W726: no reference to formal parameter 'w'
  definition: 'char w' in 'void x501( char, char, char, char )'
(508,12): Error! E006: syntax error; probable cause: missing ';'
(509,1): Warning! W014: no reference to symbol 'a'
  definition: 'int * a' in 'void x506( void )'
(513,5): Error! E006: syntax error; probable cause: missing ';'
Compiling generated function: S286::S286
  definition: 'S286::S286( void )'
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
  definition: 'S286::S286( void )'
File: 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'
(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
  definition: 'void x54( void )'
(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
(131,13): Error! E029: symbol 'b' has not been declared
(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
(135,13): Error! E029: symbol 'b' has not been declared
(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
(182,18): Warning! W556: testing expression for 'for' is always false
(184,11): Warning! W690: conditional expression is always false (zero)
  range of possible values for type 'unsigned' is 0 to 4294967295
  constant expression in comparison has value 0
File: source\diag0153.c
(9,44): Error! E670: function modifier conflicts with previous declaration 'x4'
  definition: 'void x4( int, int )'
  current declaration has type 'void __pragma("goes_byebye") ( int, int )'
(18,50): Error! E670: function modifier conflicts with previous declaration 'x13'
  definition: 'void __pragma("goes_byebye") x13( int, int )'
  current declaration has type 'void __pragma("also_goes_byebye") ( int, int )'
(28,1): Error! E670: function modifier conflicts with previous declaration 'X15::x16'
  definition: 'void X15::x16( int, int )'
  current declaration has type 'void __pragma("goes_byebye") ( int, int )'
(40,1): Error! E670: function modifier conflicts with previous declaration 'X15::x25'
  definition: 'void __pragma("goes_byebye") X15::x25( int, int )'
  current declaration has type 'void __pragma("also_goes_byebye") ( int, int )'
(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'
  definition: '__segment seg' in 'void x76( void )'
(96,1): Warning! W014: no reference to symbol 'seg1'
  definition: '__segment seg1' in 'void x85( void )'
(96,1): Warning! W014: no reference to symbol 'seg2'
  definition: '__segment seg2' in 'void x85( void )'
File: 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'
  definition: 'void two_cpps( char, char )'
(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
  definition: 'char D::a[]'
(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: source\diag0168.c
(29,10): Warning! W005: pointer or reference truncated
(30,10): Warning! W005: pointer or reference truncated
File: source\diag0173.c
(13,2): Error! E080: no warning anymore
File: source\diag0261.c
(28,7): Error! E166: cannot convert right pointer to type of left operand
  source conversion type is 'char * *'
  target conversion type is 'char __far * *'
(32,2): Error! E080: at least one error
File: source\diag0274.c
(28,7): Error! E166: cannot convert right pointer to type of left operand
  source conversion type is 'char * *'
  target conversion type is 'char __far * *'

⌨️ 快捷键说明

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