https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98844
Bug ID: 98844
Summary: Deduction guides don't inhibit the aggregate deduction
candidate
Product: gcc
Version: 11.0
URL: https://godbolt.org/z/EWs4rd
Status: UNCONFIRMED
Keywords: accepts-invalid
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: johelegp at gmail dot com
CC: johelegp at gmail dot com
Target Milestone: ---
See https://godbolt.org/z/EWs4rd.
```C++
#include<type_traits>
template<class T>struct A{T t;};
A(double)->A<void*>;
A a{1};
static_assert(std::is_same_v<decltype(a),A<int>>);
```