deduction guides do not work through alias templates
@sean-mcmanus ci sta già lavorando.
Dal 23/9/2026.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
Environment
- OS and Version: x64, Arch Linux (
7.2.6.arch2-1) - VS Code Version: 1.138.0 commit: 7debcd0e2acdea1c52de81bf9ee1620444407dda
- C/C++ Extension Version: 1.35.2 pre-release
- If using SSH remote, specify OS of remote machine: N/A
Bug Summary and Steps to Reproduce
Bug Summary: Intellisense fails to perform CTAD in the following code, when an alias template for Foo is created:
template<typename T>
struct Foo{
Foo(auto...){}
};
template<typename ...T>
Foo(T...) -> Foo<T...[0uz]>;
template<typename T>
using Foo2 = Foo<T>;
int main(){
Foo x{3.1f}; // OK
Foo2 y{3.1f}; // Not OK??
return 0;
}
GCC accepts this code.
Steps to reproduce:
- Create a new folder, open it as a workspace, and copy test.cpp into it
- Open file
- See error
Expected behavior:
Intellisense correctly performs CTAD and does not raise an error.
Configuration and Logs
c_cpp_properties.json: (None used)
Other Extensions
No response
Additional context
In testing, a variadic deduction guide and the use of pack indexing seemed necessary to trigger the bug. Although I'm not certain, it could indicate a problem with pack indexing somehow blocking template deduction.
- Lingua principale
- TypeScript
- Stelle
- 6.2k
- Fork
- 1.7k
- Merge medio
- 1g 4h
- PR unite (30g)
- 58
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di microsoft/vscode-cpptools
-
bug Language Service regression
microsoft/vscode-cpptools#14795 · 1 commento · 1 assegnatario ·
-
more info needed
microsoft/vscode-cpptools#14793 · 2 commenti · 1 assegnatario ·
-
more info needed
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
microsoft/vscode-cpptools#14787 · 1 commento · 1 assegnatario ·
-
[Bug] cpptools fails to start on Ubuntu ARM64 due to missing execute permissions on shared libraries Apertabug fixed Language Service regression
microsoft/vscode-cpptools#14779 · 1 commento · 1 assegnatario ·
-
Language Service more info needed
microsoft/vscode-cpptools#14778 · 1 commento · 1 assegnatario ·
Tutte le issue di microsoft/vscode-cpptools
Issue simili
-
VerificationGate: ATTRIBUTION quote guard never matches a normal quotation (\b around the quote) Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
danielmiessler/LifeOS#2234 ·
-
T: Bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
-
Mend: dependency security vulnerability untriaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100