[cfe-dev] Problem with C++11 template methods, friend, and namespaces

Johnny Willemsen via cfe-dev cfe-dev at lists.llvm.org
Fri Feb 24 12:18:18 PST 2017


Hi,

Thanks for the confirmation. We also assumed it as something valid, the
code does compile with Visual Studio 2015, gcc, and Intel C++ but we do
know that that is not a guarantee that it is valid C++. Hopefully
someone can pick this up soon and get this issue resolved.

Thanks!

Johnny

On 02/24/2017 07:39 PM, John Brawn wrote:
> This does look like a valid bug, and I've put a comment in the Bugzilla
> ticket. It looks like something is going wrong with the handling of
> default template arguments when instantiating friend template declarations,
> though where exactly in clang the bug is originating I haven't a clue.
> 
> John
> 
>> -----Original Message-----
>> From: cfe-dev [mailto:cfe-dev-bounces at lists.llvm.org] On Behalf Of
>> Johnny Willemsen via cfe-dev
>> Sent: 24 February 2017 15:27
>> To: cfe-dev at lists.llvm.org
>> Subject: [cfe-dev] Problem with C++11 template methods, friend, and
>> namespaces
>>
>> Hi,
>>
>> We reported an issue when we combine template methods, friend, and
>> namespace in 2014 and nothing happened with the report until now (see
>> https://bugs.llvm.org//show_bug.cgi?id=20877). Could maybe one of the
>> developers confirm/deny that this is an issue or are we assuming some
>> incorrect C++11 code?
>>
>> Best regards,
>>
>> Johnny Willemsen
>> _______________________________________________
>> cfe-dev mailing list
>> cfe-dev at lists.llvm.org
>> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev



More information about the cfe-dev mailing list