[llvm-bugs] [Bug 52395] New: [C++20] [Module] Disallow re-export a declaration which is declared already
    via llvm-bugs 
    llvm-bugs at lists.llvm.org
       
    Wed Nov  3 18:54:19 PDT 2021
    
    
  
https://bugs.llvm.org/show_bug.cgi?id=52395
            Bug ID: 52395
           Summary: [C++20] [Module] Disallow re-export a declaration
                    which is declared already
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++2a
          Assignee: unassignedclangbugs at nondot.org
          Reporter: yedeng.yd at linux.alibaba.com
                CC: blitzrakete at gmail.com, erik.pilkington at gmail.com,
                    llvm-bugs at lists.llvm.org, richard-llvm at metafoo.co.uk
According to https://eel.is/c++draft/module.interface#6, the example shouldn't
be compiled:
```
export module M;
struct S { int n; };
typedef S S;
export typedef S S;             // OK, does not redeclare an entity
export struct S;                // error: exported declaration follows
non-exported             // declaration
```
-- 
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/20211104/44e8823d/attachment.html>
    
    
More information about the llvm-bugs
mailing list