This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/20043] [4.0 Regression] transparent_union doesn't allow restrict qualifier removal
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Feb 2005 23:25:44 -0000
- Subject: [Bug c/20043] [4.0 Regression] transparent_union doesn't allow restrict qualifier removal
- References: <20050217231601.20043.roland@redhat.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-02-17 23:25 -------
What is werid is that 3.4.0 rejects the follow "legal" code though:
typedef union { int *__restrict i; long *__restrict l; } u __attribute__((transparent_union));
extern void foobar(u arg);
extern void foobar(int *__restrict);
Though 4.0.0 does compile it so we traded one bug for another.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20043