On 06/04/2012 02:54 PM, Mike Stump wrote:
Yup, that is truly weird. The problem is that the | operator is binding funny
because there are no () around the substituted variables in the matching
expressions in the .exp files, and the messages for a single line get the
opportunity to match and eat multiple lines.
So, dejagnu is using:
{[0-9]+: error:[^\n]*const|operator}
instead of:
{[0-9]+: error:[^\n]*(const|operator)}
and that makes all the difference.
That was my guess, too, but when I look at dg.exp it seems that the
pattern is properly wrapped in parens.
Jason