Bug 316416 (MONO69248) - [GMCS] Wrong 122 error with generic structs
Summary: [GMCS] Wrong 122 error with generic structs
Status: RESOLVED FIXED
Alias: MONO69248
Product: Mono: Compilers
Classification: Mono
Component: C# (show other bugs)
Version: 1.1
Hardware: Other All
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Mono Bugs
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-08 23:45 UTC by Carlos Alberto Cortez
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
Sample (205 bytes, text/plain)
2004-11-08 23:47 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 18:58:22 UTC


---- Reported by carlos@unixmexico.org 2004-11-08 16:45:58 MST ----

Description of Problem:
Currently gmcs shows error when it finds a struct that has no constructors
is created calling the default parameterless constructor.

Steps to reproduce the problem:
1. Compile the attached file with gmcs

Actual Results:
GenericStruct2.cs(11) error CS0122: 'SimpleStruct`1..ctor' is inaccessible
due to its protection level

Expected Results:
Compilation succeeded

How often does this happen? 
Always

Additional Information:



---- Additional Comments From carlos@unixmexico.org 2004-11-08 16:47:01 MST ----

Created an attachment (id=167011)
Sample




---- Additional Comments From carlos@unixmexico.org 2004-11-12 19:19:56 MST ----

It looks like after Marint return, this error doesn't exist anymore.



---- Additional Comments From martin@ximian.com 2004-11-15 02:31:52 MST ----

Fixed in CVS.

Imported an attachment (id=167011)