This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran 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]

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


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


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