re PR c/35210 (gcc incorrectly allows calling function returning "const void")
PR c/35210 * c-typeck.c (build_function_call): Check for calling a function with qualified void return types. Call require_complete_type when generating a trap. testsuite: * gcc.dg/call-diag-2.c: New test. From-SVN: r146324
Showing
gcc/testsuite/gcc.dg/call-diag-2.c
0 → 100644
Please
register
or
sign in
to comment