This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/17590] Standard conformance should take intrinsics into account.
- From: "jblomqvi at cc dot hut dot fi" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Oct 2004 13:47:38 -0000
- Subject: [Bug fortran/17590] Standard conformance should take intrinsics into account.
- References: <20040921183311.17590.jblomqvi@cc.hut.fi>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From jblomqvi at cc dot hut dot fi 2004-10-31 13:47 -------
I'm reopening this PR since a bug crept in, apparently Paul changed the code to
be C89 conformant while it depended on C99 VLA:s to function properly. If you
look at intrinsic.c:check_intrinsic_standard you see that originally it contained:
int name_len;
name_len = strlen(name);
char msgstr[name_len + 53];
while the committed version has:
int name_len;
char msgstr[name_len + 53];
i.e. msgstr is allocated before the correct length is known. I'll try to fix it
asap with some __builtin_alloca magic..
--
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17590