Default class method inlining bug (wasn't this fixed?)

Hi, I'm seeing the following bug revived in 6.8.2 and 6.8.3: http://hackage.haskell.org/trac/ghc/ticket/672 I use a default definition for class method, one that calls methods of dependent (super?) classes. Of course I'm embarrassed it took me so long to realize I didn't _need_ the class in the first place, I could just write a plain polymorphic function that calls those methods. Regardless, looks like a bug to me. Two files are attached, Test.hs and Vec.hs. Search for "BUG IS HERE" in Test.hs. There is a class and an instance declaration. Compile as-is to see the correct result. Comment out the method definition in the instance declaration to see the bug. If someone confirms, I'll open a ticket. Scott

On Wed, Jun 18, 2008 at 10:42:44AM -0600, Scott Dillard wrote:
If someone confirms, I'll open a ticket.
The core is certainly different. It doesn't build in the HEAD, so I haven't looked to see what it looks like there. Please do file a ticket, although if you can cut the example down then that will make it easier to look at, and to convert into a testcase for the testsuite. Also, please include what flags you compile with in the ticket. Thanks Ian

Ticket and standalone program are here ->
http://hackage.haskell.org/trac/ghc/ticket/2396
But I don't know anything about the test suite or how to make a test case.
Scott
On Thu, Jun 26, 2008 at 9:37 AM, Ian Lynagh
On Wed, Jun 18, 2008 at 10:42:44AM -0600, Scott Dillard wrote:
If someone confirms, I'll open a ticket.
The core is certainly different. It doesn't build in the HEAD, so I haven't looked to see what it looks like there.
Please do file a ticket, although if you can cut the example down then that will make it easier to look at, and to convert into a testcase for the testsuite. Also, please include what flags you compile with in the ticket.
Thanks Ian

On Thu, Jun 26, 2008 at 10:05:38AM -0600, Scott Dillard wrote:
Ticket and standalone program are here -> http://hackage.haskell.org/trac/ghc/ticket/2396
Thanks!
But I don't know anything about the test suite or how to make a test case.
I didn't mean that you should add it to the testsuite yourself, just that having a minimal example makes it easier for us to do so. Thanks Ian
participants (2)
-
Ian Lynagh
-
Scott Dillard