[LLVMbugs] [Bug 24272] New: Inconsistency with respect to using declaration ordering
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Mon Jul 27 04:53:15 PDT 2015
https://llvm.org/bugs/show_bug.cgi?id=24272
Bug ID: 24272
Summary: Inconsistency with respect to using declaration
ordering
Product: clang
Version: trunk
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: anders.granlund.0 at gmail.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
Why does clang accept this?
namespace M { struct i {}; }
namespace N { static int i = 1; }
using N::i;
using M::i;
int main() { sizeof (i); }
but not this?
namespace M { struct i {}; }
namespace N { static int i = 1; }
using M::i;
using N::i;
int main() { sizeof (i); }
This seems inconsistent. For comparison GCC accepts both of these programs.
I tired it with the following command line:
clang++ prog.cc -std=c++14 -pedantic-errors
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150727/d8d0a9a2/attachment.html>
More information about the llvm-bugs
mailing list