-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-codegenArea: Code generationArea: Code generationA-trait-systemArea: Trait systemArea: Trait systemI-crashIssue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.
Milestone
Description
Tried to use operator overloading in my rparse library and it worked fine until the end when it began segfaulting. Finally tracked it down to the everything method which looks like this:
fn everything<U: Copy Owned>(space: Parser<U>) -> Parser<T>
{
space >> self << eot()
}
If my test calls that method it segfaults. If my test manually inlines the body of the method it passes. If you add some logging to the shl method pass1 winds up with a garbage integer value instead of an Xml struct (assuming you use the %? specifier and make check1).
Metadata
Metadata
Assignees
Labels
A-codegenArea: Code generationArea: Code generationA-trait-systemArea: Trait systemArea: Trait systemI-crashIssue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.