Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [modules] Apply ODR merging for function scoped tags only in C++ mode. | Vassil Vassilev | 2016-09-08 | 1 | -0/+8 |
In C mode, if we have a visible declaration but not a visible definition, a tag defined in the declaration should be have a visible definition. In C++ we rely on the ODR merging, whereas in C we cannot because each declaration of a function gets its own set of declarations in its prototype scope. Patch developed in collaboration with Richard Smith! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@280984 91177308-0d34-0410-b5e6-96231b3b80d8 |