parent
60e774b22f
commit
92b5c9ee91
2 changed files with 4 additions and 4 deletions
|
|
@ -1165,8 +1165,9 @@ TIntermTyped* TParseContext::handleFunctionCall(const TSourceLoc& loc, TFunction
|
|||
error(arguments->getLoc(), message, "readonly", "");
|
||||
if (argQualifier.writeonly && ! formalQualifier.writeonly)
|
||||
error(arguments->getLoc(), message, "writeonly", "");
|
||||
if (!builtIn && argQualifier.restrict && ! formalQualifier.restrict)
|
||||
error(arguments->getLoc(), message, "restrict", "");
|
||||
// Don't check 'restrict', it is different than the rest:
|
||||
// "...but only restrict can be taken away from a calling argument, by a formal parameter that
|
||||
// lacks the restrict qualifier..."
|
||||
}
|
||||
if (!builtIn && argQualifier.layoutFormat != formalQualifier.layoutFormat) {
|
||||
// we have mismatched formats, which should only be allowed if writeonly
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue