This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[Patch, Fortran] PR20888 using NULL() pointer as operand
- From: Tobias Burnus <burnus at net-b dot de>
- To: gcc-patches <gcc-patches at gcc dot gnu dot org>, "'fortran at gcc dot gnu dot org'" <fortran at gcc dot gnu dot org>
- Date: Fri, 22 Jun 2007 20:45:40 +0200
- Subject: [Patch, Fortran] PR20888 using NULL() pointer as operand
:ADDPATCH fortran:
Reject the following invalid code:
IF (TEST .EQ. NULL(TEST)) TEST=>NULL() ! { dg-error "Invalid context
for NULL
1
Error: Invalid context for NULL() pointer at (1)
IF (NULL(TEST) .EQ. TEST) TEST=>NULL() ! { dg-error "Invalid context
for NULL
1
Error: Invalid context for NULL() pointer at (1)
Any suggestions for a better error message?
Ok for the trunk? Build & regression tested on x86_64-unknown-linux-gnu
with no failures but PR32432.
Tobias