February 13, 2014
The following two function definitions. First one gives error, second one works. Can anyone tell me the difference between putting the "shared" keyword at the end of definition, and before static.

// this gives error message
// Error: semicolon expected following function declaration
private static this() shared{}


// this works correctly
private shared static this(){}


I didn't see any information about position of keywords in documentation.

February 13, 2014
tcak:

> I didn't see any information about position of keywords in documentation.

It's a compiler bug. And it's in Bugzilla since some years.

Bye,
bearophile