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++-4.6 Solaris incorrectly defines _RESTRICT_KYWD to __restrict


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49347

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-06-09 18:35:15 UTC ---
you only reported the bug a few minutes ago, so no, nothing's planned yet!

reduced:

int f( int envp[__restrict] );

p.cc:1:17: error: expected primary-expression before '__restrict'
p.cc:1:17: error: expected ']' before '__restrict'
p.cc:1:17: error: expected ')' before '__restrict'
p.cc:1:27: error: expected initializer before ']' token

The summary should really be adjusted, although this caused a problem on
Solaris the G++ bug isn't Solaris-specific


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