RE: ghc-6.4.20050220: panic! eval_data2tag...

2005-02-23 Thread Simon Peyton-Jones
Thanks very much for boiling it down.  The data2tag primop is a dark
corner, I'm afraid.   

Now fixed, and a test added (cg056)

Simon

| -Original Message-
| From: Thomas Hallgren [mailto:[EMAIL PROTECTED]
| Sent: 22 February 2005 23:20
| To: Simon Marlow; Simon Peyton-Jones
| Cc: glasgow-haskell-bugs@haskell.org
| Subject: Re: ghc-6.4.20050220: panic! eval_data2tag...
| 
| Hi,
| 
| I managed to distill my program into to the following small example
that
| still exhibits the problem:
| 
| module Bug where
| data S e = A | B | C | D | E | F | G | H | I deriving (Eq)
| newtype R = T (S R) deriving (Eq)
| 
| The output from 'ghc -c -O Bug.hs' is:
| 
| ghc-6.4.20050220: panic! (the `impossible' happened, GHC version
| 6.4.20050220):
| eval_data2tag
| GHCziPrim.dataToTagzh{(w) v 95f}
|   @ (Bug.S{tc r14v} recntBug.R{tc r14r})
|   (__coerce (Bug.S{tc r14v} recntBug.R{tc r14r}) a{v s1Cm})
| 
| Please report it as a compiler bug to
glasgow-haskell-bugs@haskell.org,
| or http://sourceforge.net/projects/ghc/.
| 
| --
| Thomas Hallgren

___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: ghc-6.4.20050220: panic! eval_data2tag...

2005-02-23 Thread Christian Maeder
This happens when partially recompiling with -O (I thing I've send a 
similar bug-report that was kept in the moderator's queue because it was 
to slightly too large - over 40K )

Christian
Thomas Hallgren wrote:
Hi,
I managed to distill my program into to the following small example that 
still exhibits the problem:

   module Bug where
   data S e = A | B | C | D | E | F | G | H | I deriving (Eq)
   newtype R = T (S R) deriving (Eq)
The output from 'ghc -c -O Bug.hs' is:
ghc-6.4.20050220: panic! (the `impossible' happened, GHC version 
6.4.20050220):
   eval_data2tag
   GHCziPrim.dataToTagzh{(w) v 95f}
 @ (Bug.S{tc r14v} recntBug.R{tc r14r})
 (__coerce (Bug.S{tc r14v} recntBug.R{tc r14r}) a{v s1Cm})

Please report it as a compiler bug to glasgow-haskell-bugs@haskell.org,
or http://sourceforge.net/projects/ghc/.
___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


RE: ghc-6.4.20050220: panic! eval_data2tag...

2005-02-23 Thread Simon Peyton-Jones
Should be fixed now -- can you try with the HEAD?

Simon

| -Original Message-
| From: Christian Maeder [mailto:[EMAIL PROTECTED]
| Sent: 23 February 2005 09:18
| To: Thomas Hallgren
| Cc: Simon Marlow; Simon Peyton-Jones; glasgow-haskell-bugs@haskell.org
| Subject: Re: ghc-6.4.20050220: panic! eval_data2tag...
| 
| This happens when partially recompiling with -O (I thing I've send a
| similar bug-report that was kept in the moderator's queue because it
was
| to slightly too large - over 40K )
| 
| Christian
| 
| Thomas Hallgren wrote:
|  Hi,
| 
|  I managed to distill my program into to the following small example
that
|  still exhibits the problem:
| 
| module Bug where
| data S e = A | B | C | D | E | F | G | H | I deriving (Eq)
| newtype R = T (S R) deriving (Eq)
| 
|  The output from 'ghc -c -O Bug.hs' is:
| 
|  ghc-6.4.20050220: panic! (the `impossible' happened, GHC version
|  6.4.20050220):
| eval_data2tag
| GHCziPrim.dataToTagzh{(w) v 95f}
|   @ (Bug.S{tc r14v} recntBug.R{tc r14r})
|   (__coerce (Bug.S{tc r14v} recntBug.R{tc r14r}) a{v s1Cm})
| 
|  Please report it as a compiler bug to
glasgow-haskell-bugs@haskell.org,
|  or http://sourceforge.net/projects/ghc/.
| 

___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: ghc-6.4.20050220: panic! eval_data2tag...

2005-02-23 Thread Christian Maeder
Simon Peyton-Jones wrote:
Should be fixed now -- can you try with the HEAD?
yes, it work now! Thanks
Christian
|  ghc-6.4.20050220: panic! (the `impossible' happened, GHC version
|  6.4.20050220):
| eval_data2tag
| GHCziPrim.dataToTagzh{(w) v 95f}
|   @ (Bug.S{tc r14v} recntBug.R{tc r14r})
|   (__coerce (Bug.S{tc r14v} recntBug.R{tc r14r}) a{v s1Cm})
| 
|  Please report it as a compiler bug to
glasgow-haskell-bugs@haskell.org,
|  or http://sourceforge.net/projects/ghc/.
___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


RE: ghc-6.4.20050220: panic! eval_data2tag...

2005-02-22 Thread Simon Marlow
On 22 February 2005 02:04, Thomas Hallgren wrote:

 I get the following error when I compile a particular program with
 ghc --make -O ..., but not if I omit -O. ghc-6.2.2 works fine in
 either case. I can supply more details on demand (I am a lazy
 functional programmer, after all :-)

More details please!

Simon
___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: ghc-6.4.20050220: panic! eval_data2tag...

2005-02-22 Thread Thomas Hallgren
Hi,
I managed to distill my program into to the following small example that 
still exhibits the problem:

   module Bug where
   data S e = A | B | C | D | E | F | G | H | I deriving (Eq)
   newtype R = T (S R) deriving (Eq)
The output from 'ghc -c -O Bug.hs' is:
ghc-6.4.20050220: panic! (the `impossible' happened, GHC version 
6.4.20050220):
   eval_data2tag
   GHCziPrim.dataToTagzh{(w) v 95f}
 @ (Bug.S{tc r14v} recntBug.R{tc r14r})
 (__coerce (Bug.S{tc r14v} recntBug.R{tc r14r}) a{v s1Cm})

Please report it as a compiler bug to glasgow-haskell-bugs@haskell.org,
or http://sourceforge.net/projects/ghc/.
--
Thomas Hallgren
___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs