Skip to content

Commit 401f939

Browse files
committed
add test for GH1163191
1 parent 8e56a50 commit 401f939

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

clang/docs/ReleaseNotes.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ Bug Fixes in This Version
379379
- Fixed an assertion when an improper use of the ``malloc`` attribute targeting
380380
a function without arguments caused us to try to access a non-existent argument.
381381
(#GH159080)
382-
- Fixed a failed assertion with empty filename arguments in ``__has_embed``. (#GH159898) (#GH56652)
382+
- Fixed a failed assertion with empty filename arguments in ``__has_embed``. (#GH159898)
383383

384384
Bug Fixes to Compiler Builtins
385385
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -433,7 +433,7 @@ Bug Fixes to C++ Support
433433
object type. (#GH151531)
434434
- Suppress ``-Wdouble-promotion`` when explicitly asked for with C++ list initialization (#GH33409).
435435
- Fix the result of `__builtin_is_implicit_lifetime` for types with a user-provided constructor. (#GH160610)
436-
- Correctly deduced return types in ``decltype`` expressions. (#GH160497)
436+
- Correctly deduced return types in ``decltype`` expressions. (#GH160497) (#GH56652) (#GH116319)
437437

438438
Bug Fixes to AST Handling
439439
^^^^^^^^^^^^^^^^^^^^^^^^^

clang/test/CodeGenCXX/gh56652.cpp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,20 @@ template <typename T> auto fn(T) {
2222

2323
auto a = decltype(fn(bar<int>{})){};
2424

25+
}
26+
27+
namespace GH116319 {
28+
29+
template <int = 0> struct a {
30+
template <class> static constexpr auto b = 2;
31+
template <class> static void c() noexcept(noexcept(b<int>)) {}
32+
};
33+
34+
void test() { a<>::c<int>(); }
35+
36+
2537
}
2638

2739
// CHECK: %"struct.GH56652::bar" = type { i8 }
40+
// CHECK: $_ZN8GH1163191aILi0EE1cIiEEvv = comdat any
2841
// CHECK: @_ZN7GH566521aE = global %"struct.GH56652::bar" undef

0 commit comments

Comments
 (0)