This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [Patch, Fortran] PR 33412 ELEMENTAL and language bindings conflict
- From: Tobias Burnus <burnus at net-b dot de>
- To: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>, "'fortran at gcc dot gnu dot org'" <fortran at gcc dot gnu dot org>
- Date: Thu, 13 Sep 2007 19:51:06 +0200
- Subject: Re: [Patch, Fortran] PR 33412 ELEMENTAL and language bindings conflict
- References: <46E84D48.5070805@net-b.de> <20070913174123.GA43737@troutmask.apl.washington.edu>
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