https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97477
--- Comment #2 from Dalon Work <dwwork at gmail dot com> --- (In reply to Richard Biener from comment #1) > IIRC restrict is not official C++ but I agree it should be accepted. You are correct, it is not official c++. g++ accepts and uses the '__restrict' keyword in c++ to mean approximately the same thing as the 'restrict' keyword in c. Not being a g++ developer, I cannot say to what degree this extension to the c++ language is supported by the g++ compiler, so I'll leave it up to you to decide what to do with this information.