Hi all!
I'm playing with current master code and noticed the following error when I tried to compile it:
CSC : error CS0583: Internal Compiler Error (0xc0000005 at address 013018C1): likely culprit is 'COMPILE'.
GitHub\Npgsql\Npgsql\TypeHandlers\BitStringHandler.cs(24,20,24,36): error CS0584: Internal Compiler Error: stage 'COMPILE' symbol 'Npgsql.TypeHandlers.BitStringHandler'
GitHub\Npgsql\Npgsql\TypeHandlers\BitStringHandler.cs(12,11,12,30): error CS0584: Internal Compiler Error: stage 'COMPILE' symbol 'Npgsql.TypeHandlers'
GitHub\Npgsql\Npgsql\TypeHandlers\BitStringHandler.cs(12,11,12,30): error CS0584: Internal Compiler Error: stage 'COMPILE' symbol 'Npgsql'
GitHub\Npgsql\Npgsql\TypeHandlers\BitStringHandler.cs : error CS0584: Internal Compiler Error: stage 'COMPILE' symbol '<global namespace>'
GitHub\Npgsql\Npgsql\TypeHandlers\BitStringHandler.cs : error CS0586: Internal Compiler Error: stage 'COMPILE'
Are you getting those errors? I'm using vs2013 express update 4.
I noticed that the problem seems to be the TypeMappingAttribute, more specifically the internal TypeMappingAttribute(string pgName, NpgsqlDbType npgsqlDbType, DbType[] dbTypes=null, Type type=null) constructor.
I could only get it to compile without any problem by changing the contructor to the following two others:
internal TypeMappingAttribute(string pgName, NpgsqlDbType npgsqlDbType)
: this(pgName, npgsqlDbType, new DbType[0], new Type[0]) { }
internal TypeMappingAttribute(string pgName, NpgsqlDbType npgsqlDbType, DbType[] dbTypes, Type type)
: this(pgName, npgsqlDbType, dbTypes, new[] {type}) { }
While playing with those constructors, in some configurations, I received errors about ambiguous constructors between them regarding the DbType[] and Type[] when using null values. I think this may be the cause of the internal compiler error. But I'm not sure if this is the case.
I also think this may be some error in the compiler itself as when I compiled it under mono I didn't receive this error.