[buildd-tools-devel] Bug#778112: Bug#778112: Bug#778112: Bug#778112: schroot: ftbfs with GCC-5

Roger Leigh rleigh at codelibre.net
Sat Jul 25 22:09:05 UTC 2015


On 25/07/2015 22:07, Roger Leigh wrote:
> On 25/07/2015 21:45, Roger Leigh wrote:
>
>> OK, some further investigation has shown what the exact error is.  It
>> looks like a GCC bug.  Please see the attached source file testcase.
>> This regex is failing:
>>
>>    std::regex("^[a-z0-9][a-z0-9-]*$", std::regex::extended);
>>
>> however this one works:
>>
>>    std::regex("^[a-z0-9][-a-z0-9]*$", std::regex::extended);
>
> In the same vein, the attached sample using basic rather than extended
> expressions fails in the opposite way. In this case both compile but the
> latter expression fails to match correctly. Since the expression should
> be valid and behave the same in both cases, it looks like there are two
> bugs here, the first being unable to compile a valid extended regex, the
> second here being unable to match (which is likely also a compile
> failure, but not a fatal one).

Note this latter issue is seen with GCC 4.9 but appears to work with GCC 5.



More information about the Buildd-tools-devel mailing list