This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: question on bind(c) global vars
On Sat, Jan 13, 2007 at 03:26:40AM +0100, Tobias Schlüter wrote:
> dg-error matches a regular expression. Parentheses have a special
> meaning in regular expressions. Thus your match should look something
> like
> { dg-error "can not be BIND\(C\)" } or
> { dg-error "can not be BIND.C." }
>
> (I'm wondering if you shouldn't use "cannot", but I forgot the precise
> rule for distinguishing between the two.)
Yes, that should definitely be "cannot".
The rule to remember is "Don't use 'can not'." :)
The more precise explanation is that, if you use "can not", it looks
like it means "it's possible for this not to be bind(C)" -- which
generally implies that it's also true that it "can be bind(C)", too.
- Brooks