It is a compiler bug. You should submit a QC report.
Interestingly your code does not even compile on older Delphi versions. For instance, I could not compile your code on XE3. The first call to Bar
fails with:
[dcc32 Error]: E2250 There is no overloaded version of 'Bar' that can be called with these arguments
If I recall that problem is related to declaring and instantiating generic types in .dpr files.