This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/49347] G++ rejects Solaris spawn.h use of __restrict


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);


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]