re PR c/6024 (GCC fails to diagnose mismatch of enum types in prototype/function)
authorJoseph Myers <jsm@polyomino.org.uk>
Wed, 7 Jan 2004 22:24:44 +0000 (22:24 +0000)
committerJoseph Myers <jsm28@gcc.gnu.org>
Wed, 7 Jan 2004 22:24:44 +0000 (22:24 +0000)
commitbca63328817fdf5c02d50ce227de4ef2f1c5dbdf
tree758366d4443ad9fd7fd7a5e37a42e69d047dd67a
parent158960ba7e2e8f5d4ad01e4ceb736bbbfd600e0e
re PR c/6024 (GCC fails to diagnose mismatch of enum types in prototype/function)

PR c/6024
* c-typeck.c (comptypes): Only treat enumerated types in the same
translation unit as compatible with each other when they are the
same type.
* doc/extend.texi: Update.

f:
* com.h (ffecom_gfrt_basictype): Correct return type.

testsuite:
* gcc.dg/enum-compat-1.c: New test.
* gcc.c-torture/execute/builtin-types-compatible-p.c: Update.

From-SVN: r75521
gcc/ChangeLog
gcc/c-typeck.c
gcc/doc/extend.texi
gcc/f/ChangeLog
gcc/f/com.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/builtin-types-compatible-p.c
gcc/testsuite/gcc.dg/enum-compat-1.c [new file with mode: 0644]