llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

Clang mishandles multiple local classes with the same name

Open llvmbot opened this issue 14 years ago • 1 comments

Bugzilla Link 14516
Resolution FIXED
Resolved on Dec 12, 2014 08:38
Version trunk
OS Linux
Attachments Test case
Reporter LLVM Bugzilla Contributor
CC @DougGregor,@TNorthover

Extended Description

In the attached file local-classes.cpp, Clang ends up defining a constructor for only one of the local "A" classes. This is called in both instantiations and gives the wrong result.

llvmbot avatar Dec 05 '12 12:12 llvmbot

This seems to have been fixed, probably long ago.

TNorthover avatar Dec 12 '14 16:12 TNorthover