This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/49347] G++ rejects Solaris spawn.h use of __restrict
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 10 Jun 2011 18:32:13 +0000
- Subject: [Bug c++/49347] G++ rejects Solaris spawn.h use of __restrict
- Auto-submitted: auto-generated
- References: <bug-49347-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49347
Jason Merrill <jason at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jason at gcc dot gnu.org
Summary|G++ does not accept |G++ rejects Solaris spawn.h
|T[__restrict] |use of __restrict
--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> 2011-06-10 18:31:28 UTC ---
C++ does not allow type-qualifiers between [], and it seems unnecessary to do
so when the type is going to decay to a pointer anyway. Just have fixincludes
correct the solaris header to
char *const *_RESTRICT_KYWD argv,
char *const *_RESTRICT_KYWD envp);