[cfe-commits] [PATCH] Fixed scoped enum name conflicts

Aaron Ballman aaron at aaronballman.com
Wed Jul 18 19:51:25 PDT 2012


This patch addresses PR13128, which points out that the scoped enum
constant name lookup still causes errors when conflicting with the
class name.  Due to it being a scoped enum, the name is looked up in
scope, and so the class name doesn't provide a conflict with the
following example:

class C {
  enum class E { C };
};

~Aaron
-------------- next part --------------
A non-text attachment was scrubbed...
Name: scopedenum.patch
Type: application/octet-stream
Size: 1402 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120718/9cf34125/attachment.obj>


More information about the cfe-commits mailing list