compiler-bug
Is this a bug in dynamic?
When implementing dynamic dispatch using dynamic on a generic class, and the generic type parameter is a private inner class on another class, the runtime binder throws an exception.[详细]
2023-03-09 00:27 分类:问答Why does this generics scenario cause a TypeLoadException?
This got a bit long-winded, so here\'s the quick version: Why does this cause a runtime TypeLoadException? (And should the compiler prevent me from doing it?)[详细]
2023-03-06 07:14 分类:问答Why does this private template function compile? -> Compiler Bug VS 2009
This compiles with out problems in VS 2009? Am I stupid? GCC gives a warning, that the template is private....?[详细]
2023-03-01 04:58 分类:问答64-bit pointer subtraction, signed integer underflow, and a possible compiler bug?
I recent开发者_如何学Goly tore my hair out debugging this piece of code (slightly modified for simplicity of presentation):[详细]
2023-02-16 06:20 分类:问答Why does this compile? The code seems to be breaking constraints on the type parameters
In the following test, TesterClass places a constraint on the relation between its two type parameters. The method func2() seems to break that constraint, and I expect it to cause a typing compilation[详细]
2023-02-02 04:14 分类:问答'Delegate 'System.Action' does not take 0 arguments.' Is this a C# compiler bug (lambdas + two projects)?
Consider the code below. Looks like perfectly valid C# code right? //Project B using System; public delegate void ActionSurrogate(Action addEvent);[详细]
2023-01-30 19:50 分类:问答C++ template function gets erronous default values
I have hit upon a real brain scorcher in C++, it has never happened to me before. The gist of the problem is that upon invocation of my (template) function the arguments I have defined defaults for h[详细]
2023-01-07 22:52 分类:问答Apache mod_rewrite replace characters in REQUEST_URI
I\'m trying to write some .htaccess rules that replace certain characters in the REQUEST_URI para开发者_运维百科meter.Specifically, I want to replace the following:[详细]
2022-12-28 18:26 分类:问答Compiler warning when passing NSError ** as a method parameter
I\'ve been scratching my head about this for the last 4 hours, trying out all kinds of little experiments, but I can\'t seem to figure out what\'s going wrong. Could this be a compiler bug?[详细]
2022-12-25 17:55 分类:问答