Fix enum comparisons
Ian Lance Taylor
iant@google.com
Wed Sep 3 00:04:00 GMT 2008
While testing a patch to warn about comparing different enum types in
C, I ran into a couple of problems in the Fortran frontend. Here is
the patch I wrote. I'm pretty sure about all of them except the first
one, changing DIMEN_ELEMENT to AR_ELEMENT. Could somebody tell me
whether that is correct? The existing code seems clearly wrong, but
this patch will change how the compiler behaves. Thanks.
Ian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.patch
Type: text/x-patch
Size: 1885 bytes
Desc: Fix enum comparisons
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20080903/bdbad467/attachment.bin>
More information about the Fortran
mailing list