PR# 16923 Wrong error reported on generic class with formal constrained twice by same class

Problem Report Summary
Submitter: prestoat2000
Category: Compiler
Priority: Medium
Date: 2010/06/28
Class: Bug
Severity: Non-critical
Number: 16923
Release: 6.6.83355
Confidential: No
Status: Open
Responsible:
Environment: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:1.9.0.10) Gecko/2009042715 Firefox/3.0.10 Solaris 10 on SPARC
Synopsis: Wrong error reported on generic class with formal constrained twice by same class

Description
For a class

   class TEST2 [G -> {ANY, ANY} create default_create end]

the compiler reports a VGCC(1) error and a VTCG error.  It should report
a VTGC(3) error since that is the real source of the problem and adding a
rename for `default_create' in one of the two constraining types allows the class
to compile.  Note also that if the constraint is instead

   class TEST2 [G -> {ANY, TEST1} create default_create end]

then the compiler correctly reports VTGC(3).

Added eweasel test multicon053 for this bug.




   
To Reproduce
Run eweasel test multicon053.
Problem Report Interactions