[clang] [clang] Bail out if the result of function template instantiation is not a function type. (PR #69459)

2023-10-25 Thread Shafik Yaghmour via cfe-commits
@@ -0,0 +1,16 @@ +// RUN: %clang_cc1 -x c++ -std=c++14 -fsyntax-only -verify %s + +template +using Type = typename A::NestedType; // expected-error {{type 'float' cannot be used prior to '::' because it has no members}} + +template +void Func() { + using MyType = Type(); //

[clang] [clang] Bail out if the result of function template instantiation is not a function type. (PR #69459)

2023-10-25 Thread Shafik Yaghmour via cfe-commits
shafik wrote: Please next time add a detailed description to your PR. This is key for reviewers to fully understand at a glance what the fix is for. This is also key for users of git log to be able to understand changes at a glance without having to dig in. Folks often use git log to track

[clang] [clang] Bail out if the result of function template instantiation is not a function type. (PR #69459)

2023-10-18 Thread via cfe-commits
https://github.com/VitaNuo closed https://github.com/llvm/llvm-project/pull/69459 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Bail out if the result of function template instantiation is not a function type. (PR #69459)

2023-10-18 Thread via cfe-commits
VitaNuo wrote: This is the same as the approved https://github.com/llvm/llvm-project/pull/69449. https://github.com/llvm/llvm-project/pull/69459 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[clang] [clang] Bail out if the result of function template instantiation is not a function type. (PR #69459)

2023-10-18 Thread via cfe-commits
https://github.com/VitaNuo updated https://github.com/llvm/llvm-project/pull/69459 >From d8305b64a464e5cd992c836ef13d452f62235442 Mon Sep 17 00:00:00 2001 From: Viktoriia Bakalova Date: Wed, 18 Oct 2023 12:55:04 + Subject: [PATCH 1/2] [clang] Bail out if the result of function template

[clang] [clang] Bail out if the result of function template instantiation is not a function type. (PR #69459)

2023-10-18 Thread via cfe-commits
https://github.com/VitaNuo edited https://github.com/llvm/llvm-project/pull/69459 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Bail out if the result of function template instantiation is not a function type. (PR #69459)

2023-10-18 Thread via cfe-commits
https://github.com/VitaNuo created https://github.com/llvm/llvm-project/pull/69459 …not a function. >From d8305b64a464e5cd992c836ef13d452f62235442 Mon Sep 17 00:00:00 2001 From: Viktoriia Bakalova Date: Wed, 18 Oct 2023 12:55:04 + Subject: [PATCH] [clang] Bail out if the result of