diff options
author | Joseph Myers <joseph@codesourcery.com> | 2009-04-18 21:02:47 +0100 |
---|---|---|
committer | Joseph Myers <jsm28@gcc.gnu.org> | 2009-04-18 21:02:47 +0100 |
commit | 3ce6296587139c291f7f5c31dbdc30e9c2e1829f (patch) | |
tree | a6c65f5de5128a6789a87a6fcc619e69296cae6e /libcpp | |
parent | 2daad65eaf4b3406d04d6ba4758b120312ed0a0c (diff) | |
download | gcc-3ce6296587139c291f7f5c31dbdc30e9c2e1829f.zip gcc-3ce6296587139c291f7f5c31dbdc30e9c2e1829f.tar.gz gcc-3ce6296587139c291f7f5c31dbdc30e9c2e1829f.tar.bz2 |
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
Diffstat (limited to 'libcpp')
0 files changed, 0 insertions, 0 deletions