mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-25 04:16:07 +00:00

This triggered a miscompilation of code using Boost's function_template.hpp when it was included inside a PCH file. A local static within that header would be treated as local extern, resulting in the wrong mangling. This only occurred during PCH deserialization. Fixes <rdar://problem/15975816> and <rdar://problem/15926311>. llvm-svn: 201130
8 lines
89 B
C++
8 lines
89 B
C++
class Bar {
|
|
public:
|
|
template<typename T>
|
|
void f() {
|
|
static const T y = 0;
|
|
}
|
|
};
|