Bug 319426 (MONO76587) - [GMCS] error using indexer on instance of generic type
Summary: [GMCS] error using indexer on instance of generic type
Status: RESOLVED FIXED
Alias: MONO76587
Product: Mono: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: 1.1
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Martin Baulig
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-29 11:10 UTC by Bryan Silverthorn
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
First test case. (215 bytes, text/plain)
2005-10-29 11:13 UTC, Thomas Wiest
Details
Second test case. (308 bytes, text/plain)
2005-10-29 11:14 UTC, Thomas Wiest
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 19:36:39 UTC


---- Reported by bcs26@cornell.edu 2005-10-29 04:10:50 MST ----

When compiling either of the attached test cases (GenDebug.cs and
GenDebugConstr.cs), gmcs 1.1.9.1 generates an error and aborts. For example:

"""
> gmcs GenDebug.cs -t:library

** ERROR **: get custom attrs not yet supported for GenericTypeParameterBuilder
aborting...
Aborted
"""

GenDebug.cs should not compile, since an instance of G does not necessarily
have an indexer. GenDebugConstr.cs should (AFAIK) compile, since G is
constrained to have an indexer. But neither of these cases should cause the
compiler to fail as above.

The output is identical on both amd64 and x86, running Gentoo. I have not
yet tested gmcs in trunk.



---- Additional Comments From bcs26@cornell.edu 2005-10-29 04:13:59 MST ----

Created an attachment (id=168751)
First test case.




---- Additional Comments From bcs26@cornell.edu 2005-10-29 04:14:27 MST ----

Created an attachment (id=168752)
Second test case.




---- Additional Comments From martin@ximian.com 2005-11-17 13:48:05 MST ----

Fixed in SVN.

Imported an attachment (id=168751)
Imported an attachment (id=168752)

Unknown operating system unknown. Setting to default OS "Other".