[Patch, Fortran] PR 33412 ELEMENTAL and language bindings conflict

Tobias Burnus burnus@net-b.de
Thu Sep 13 18:28:00 GMT 2007


Steve Kargl wrote:
>> +elemental subroutine a() bind(c) ! { dg-error "BIND.C. attribute conflicts with ELEMENTAL" }
>>     
> Why does the dg-error message contain "BIND.C." instead of "BIND(C)"?
> Is this a tcl regex parsing issue
Yes. The . simply matches one character. If one needs to match "(" one
has to escape it: \( and as there is seemingly the shell involved, the \
itself has also to be escaped. As I always forget whether only the \ or
also the ( needs to be escaped ("\\(" vs. "\\\("), I simply use the dot.
(Answer:  \\( is enough; thus to match "bind(c)" one has to use
"bind\\(c\\)".)

Thanks for the review.

Tobias



More information about the Gcc-patches mailing list