- 论坛徽章:
- 0
|
一帖发不完,只能帖两次
— The program removes the definition of a macro whose name begins with an
underscore and either an uppercase letter or another underscore (7.1.3).
— An argument to a library function has an invalid value or a type not expected by a
function with variable number of arguments (7.1.4).
— The pointer passed to a library function array parameter does not have a value such
that all address computations and object accesses are valid (7.1.4).
— The macro definition ofassertis suppressed in order to access an actual function
(7.2).
— The argument to theassertmacro does not have a scalar type (7.2).
— TheCX_LIMITED_RANGE, FENV_ACCESS,orFP_CONTRACTpragma is used in
any context other than outside all external declarations or preceding all explicit
declarations and statements inside a compound statement (7.3.4, 7.6.1, 7.12.2).
— The value of an argument to a character handling function is neither equal to the value
ofEOFnor representable as anunsigned char(7.4).
— A macro definition oferrnois suppressed in order to access an actual object, or the
program defines an identifier with the nameerrno(7.5).
— Part of the program tests floating-point status flags, sets floating-point control modes,
or runs under non-default mode settings, but was translated with the state for the
FENV_ACCESSpragma ‘‘off’’ (7.6.1).
— The exception-mask argument for one of the functions that provide access to the
floating-point status flags has a nonzero value not obtained by bitwiseORof the
floating-point exception macros (7.6.2).
— Thefesetexceptflagfunction is used to set floating-point status flags that were
not specified in the call to thefegetexceptflagfunction that provided the value
of the correspondingfexcept_tobject (7.6.2.4). The argument tofesetenvor
feupdateenvis neither an object set by a call tofegetenvorfeholdexcept,
nor is it an environment macro (7.6.4.3, 7.6.4.4).
— The value of the result of an integer arithmetic or conversion function cannot be
represented (7.8.2.1, 7.8.2.2, 7.8.2.3, 7.8.2.4, 7.20.6.1, 7.20.6.2, 7.20.1).
— The program modifies the string pointed to by the value returned by thesetlocale
function (7.11.1.1).
— The program modifies the structure pointed to by the value returned by the
localeconvfunction (7.11.2.1).
— A macro definition ofmath_errhandlingis suppressed or the program defines
an identifier with the namemath_errhandling(7.12).
— An argument to a floating-point classification or comparison macro is not of real
floating type (7.12.3, 7.12.14).
— A macro definition ofsetjmpis suppressed in order to access an actual function, or
the program defines an external identifier with the namesetjmp(7.13.1).
— An inv ocation of thesetjmpmacro occurs other than in an allowed context
(7.13.2.1).
— Thelongjmpfunction is invoked to restore a nonexistent environment (7.13.2.1).
— After alongjmp, there is an attempt to access the value of an object of automatic
storage class with non-volatile-qualified type, local to the function containing the
invocation of the corresponding setjmpmacro, that was changed between the
setjmpinvocation andlongjmpcall (7.13.2.1).
— The program specifies an invalid pointer to a signal handler function (7.14.1.1).
— A signal handler returns when the signal corresponded to a computational exception
(7.14.1.1).
— A signal occurs as the result of calling theabortorraisefunction, and the signal
handler calls theraisefunction (7.14.1.1).
— A signal occurs other than as the result of calling theabortorraisefunction, and
the signal handler refers to an object with static storage duration other than by
assigning a value to an object declared asvolatile sig_atomic_t, or calls any
function in the standard library other than theabortfunction, the_Exitfunction,
or thesignalfunction (for the same signal number), (7.14.1.1).
— The value oferrnois referred to after a signal occurred other than as the result of
calling theabortorraisefunction and the corresponding signal handler obtained
aSIG_ERRreturn from a call to thesignalfunction (7.14.1.1).
— A signal is generated by an asynchronous signal handler (7.14.1.1).
— A function with a variable number of arguments attempts to access its varying
arguments other than through a properly declared and initializedva_listobject, or
before theva_startmacro is invoked (7.15, 7.15.1.1, 7.15.1.4).
— The macrova_argis invoked using the parameter apthat was passed to a function
that invoked the macrova_argwith the same parameter (7.15).
— A macro definition ofva_start, va_arg, va_copy,orva_endis suppressed in
order to access an actual function, or the program defines an external identifier with
the nameva_end(7.15.1).
— Theva_startorva_copymacro is invoked without a corresponding invocation
of theva_endmacro in the same function, or vice versa (7.15.1, 7.15.1.2, 7.15.1.3,
7.15.1.4).
— The type parameter to theva_argmacro is not such that a pointer to an object of
that type can be obtained simply by postfixing a*(7.15.1.1).
— Theva_argmacro is invoked when there is no actual next argument, or with a
specified type that is not compatible with the promoted type of the actual next
argument, with certain exceptions (7.15.1.1).
— Theva_copyorva_startmacro is called to initialize ava_listthat was
previously initialized by either macro without an intervening invocation of the
va_endmacro for the sameva_list(7.15.1.2, 7.15.1.4).
— The parameterparmN of a va_startmacro is declared with theregister
storage class, with a function or array type, or with a type that is not compatible with
the type that results after application of the default argument promotions (7.15.1.4).
— The member designator parameter of anoffsetofmacro is an invalid right
operand of the.operator for thetypeparameter, or designates a bit-field (7.17).
— The argument in an instance of one of the integer-constant macros is not a decimal,
octal, or hexadecimal constant, or it has a value that exceeds the limits for the
corresponding type (7.18.4).
— A byte input/output function is applied to a wide-oriented stream, or a wide character
input/output function is applied to a byte-oriented stream (7.19.2).
— Use is made of any portion of a file beyond the most recent wide character written to
a wide-oriented stream (7.19.2).
— The value of a pointer to aFILEobject is used after the associated file is closed
(7.19.3).
— The stream for thefflushfunction points to an input stream or to an update stream
in which the most recent operation was input (7.19.5.2).
— The string pointed to by themodeargument in a call to thefopenfunction does not
exactly match one of the specified character sequences (7.19.5.3).
— An output operation on an update stream is followed by an input operation without an
intervening call to the fflushfunction or a file positioning function, or an input
operation on an update stream is followed by an output operation with an intervening
call to a file positioning function (7.19.5.3).
— An attempt is made to use the contents of the array that was supplied in a call to the
setvbuffunction (7.19.5.6).
— There are insufficient arguments for the format in a call to one of the formatted
input/output functions, or an argument does not have an appropriate type (7.19.6.1,
7.19.6.2, 7.24.2.1, 7.24.2.2).
— The format in a call to one of the formatted input/output functions or to the
strftimeorwcsftimefunction is not a valid multibyte character sequence that
begins and ends in its initial shift state (7.19.6.1, 7.19.6.2, 7.23.3.5, 7.24.2.1, 7.24.2.2,
7.24.5.1).
— In a call to one of the formatted output functions, a precision appears with a
conversion specifier other than those described (7.19.6.1, 7.24.2.1).
— A conversion specification for a formatted output function uses an asterisk to denote
an argument-supplied field width or precision, but the corresponding argument is not
provided (7.19.6.1, 7.24.2.1).
— A conversion specification for a formatted output function uses a#or0flag with a
conversion specifier other than those described (7.19.6.1, 7.24.2.1).
— A conversion specification for one of the formatted input/output functions uses a
length modifier with a conversion specifier other than those described (7.19.6.1,
7.19.6.2, 7.24.2.1, 7.24.2.2).
—Ansconversion specifier is encountered by one of the formatted output functions,
and the argument is missing the null terminator (unless a precision is specified that
does not require null termination) (7.19.6.1, 7.24.2.1).
—Annconversion specification for one of the formatted input/output functions includes
any flags, an assignment-suppressing character, a field width, or a precision (7.19.6.1,
7.19.6.2, 7.24.2.1, 7.24.2.2).
—A% conversion specifier is encountered by one of the formatted input/output
functions, but the complete conversion specification is not exactly %%(7.19.6.1,
7.19.6.2, 7.24.2.1, 7.24.2.2).
— An inv alid conversion specification is found in the format for one of the formatted
input/output functions, or thestrftimeorwcsftimefunction (7.19.6.1, 7.19.6.2,
7.23.3.5, 7.24.2.1, 7.24.2.2, 7.24.5.1).
— The number of characters transmitted by a formatted output function is greater than
INT_MAX(7.19.6.1, 7.19.6.3, 7.19.6.8, 7.19.6.10).
— The result of a conversion by one of the formatted input functions cannot be
represented in the corresponding object, or the receiving object does not have an
appropriate type (7.19.6.2, 7.24.2.2).
—Ac, s,or[conversion specifier is encountered by one of the formatted input
functions, and the array pointed to by the corresponding argument is not large enough
to accept the input sequence (and a null terminator if the conversion specifier is sor
[) (7.19.6.2, 7.24.2.2).
—Ac, s,or[conversion specifier with anlqualifier is encountered by one of the
formatted input functions, but the input is not a valid multibyte character sequence
that begins in the initial shift state (7.19.6.2, 7.24.2.2).
— The input item for a%pconversion by one of the formatted input functions is not a
value converted earlier during the same program execution (7.19.6.2, 7.24.2.2).
— Thevfprintf, vfscanf, vprintf, vscanf, vsnprintf, vsprintf,
vsscanf, vfwprintf, vfwscanf, vswprintf, vswscanf, vwprintf,or
vwscanffunction is called with an improperly initialized va_listargument, or
the argument is used (other than in an invocation of va_end) after the function
returns (7.19.6.8, 7.19.6.9, 7.19.6.10, 7.19.6.11, 7.19.6.12, 7.19.6.13, 7.19.6.14,
7.24.2.5, 7.24.2.6, 7.24.2.7, 7.24.2.8, 7.24.2.9, 7.24.2.10).
— The contents of the array supplied in a call to thefgets, gets,orfgetwsfunction
are used after a read error occurred (7.19.7.2, 7.19.7.7, 7.24.3.2).
— The file position indicator for a binary stream is used after a call to theungetc
function where its value was zero before the call (7.19.7.11).
— The file position indicator for a stream is used after an error occurred during a call to
thefreadorfwritefunction (7.19.8.1, 7.19.8.2).
— A partial element read by a call to thefreadfunction is used (7.19.8.1).
— Thefseekfunction is called for a text stream with a nonzero offset and either the
offset was not returned by a previous successful call to theftellfunction on a
stream associated with the same file orwhenceis notSEEK_SET(7.19.9.2).
— Thefsetposfunction is called to set a position that was not returned by a previous
successful call to thefgetposfunction on a stream associated with the same file
(7.19.9.3).
— A non-null pointer returned by a call to thecalloc, malloc,orreallocfunction
with a zero requested size is used to access an object (7.20.3).
— The value of a pointer that refers to space deallocated by a call to thefreeor
reallocfunction is used (7.20.3).
— The pointer argument to thefreeorreallocfunction does not match a pointer
earlier returned by calloc, malloc,orrealloc, or the space has been
deallocated by a call tofreeorrealloc(7.20.3.2, 7.20.3.4).
— The value of the object allocated by themallocfunction is used (7.20.3.3).
— The value of any bytes in a new object allocated by thereallocfunction beyond
the size of the old object are used (7.20.3.4).
— The program executes more than one call to theexitfunction (7.20.4.3).
— During the call to a function registered with theatexitfunction, a call is made to
the longjmpfunction that would terminate the call to the registered function
(7.20.4.3).
— The string set up by thegetenvorstrerrorfunction is modified by the program
(7.20.4.5, 7.21.6.2).
— A command is executed through thesystemfunction in a way that is documented as
causing termination or some other form of undefined behavior (7.20.4.6).
— A searching or sorting utility function is called with an invalid pointer argument, even
if the number of elements is zero (7.20.5).
— The comparison function called by a searching or sorting utility function alters the
contents of the array being searched or sorted, or returns ordering values
inconsistently (7.20.5).
— The array being searched by thebsearchfunction does not have its elements in
proper order (7.20.5.1).
— The current conversion state is used by a multibyte/wide character conversion
function after changing theLC_CTYPEcategory (7.20.7).
— A string or wide string utility function is instructed to access an array beyond the end
of an object (7.21.1, 7.24.4).
— A string or wide string utility function is called with an invalid pointer argument, even
if the length is zero (7.21.1, 7.24.4).
— The contents of the destination array are used after a call to thestrxfrm,
strftime, wcsxfrm,orwcsftimefunction in which the specified length was
too small to hold the entire null-terminated result (7.21.4.5, 7.23.3.5, 7.24.4.4.4,
7.24.5.1).
— The first argument in the very first call to thestrtokorwcstokis a null pointer
(7.21.5.8, 7.24.4.5.7).
— The type of an argument to a type-generic macro is not compatible with the type of
the corresponding parameter of the selected function (7.22).
— A complex argument is supplied for a generic parameter of a type-generic macro that
has no corresponding complex function (7.22).
— The argument corresponding to ansspecifier without anlqualifier in a call to the
fwprintffunction does not point to a valid multibyte character sequence that
begins in the initial shift state (7.24.2.11).
— In a call to thewcstokfunction, the object pointed to by ptrdoes not have the
value stored by the previous call for the same wide string (7.24.4.5.7).
—Anmbstate_tobject is used inappropriately (7.24.6).
— The value of an argument of typewint_tto a wide character classification or case
mapping function is neither equal to the value ofWEOFnor representable as a
wchar_t(7.25.1).
— Theiswctypefunction is called using a different LC_CTYPEcategory from the
one in effect for the call to the wctypefunction that returned the description
(7.25.2.2.1).
— Thetowctransfunction is called using a different LC_CTYPEcategory from the
one in effect for the call to thewctransfunction that returned the description
(7.25.3.2.1). |
|