New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
-ast-dump triggers assertion `!isa<ElaboratedType>(T) && "Elaborated type in nested-name-specifier"' #43179
Comments
I cannot reproduce this issue. If you're still seeing the problem with Clang trunk, please reopen this bug with additional details on how to reproduce. |
indeed, appears to have been fixed in the meantime |
namespace {
template <bool, typename, typename> struct conditional;
template <bool _Cond, typename _Iftrue, typename _Iffalse>
using conditional_t = conditional<_Cond, _Iftrue, _Iffalse>;
const int Dynamic{};
template <typename, int> class Matrix;
template <int = Dynamic> class InnerStride;
template <int = Dynamic> class OuterStride;
template <typename PlainObjectType, int,
typename = conditional_t<PlainObjectType::IsVectorAtCompileTime,
InnerStride<>, OuterStride<>>>
class Ref;
namespace {
template <typename VectorType> void stable_norm_impl_inner_step() {
typedef typename VectorType::Scalar Scalar;
typedef typename VectorType::type VectorTypeCopyClean;
enum { CanAlign };
conditional_t<CanAlign,
Ref<const Matrix<Scalar, 1>, VectorTypeCopyClean ::Alignment>,
typename VectorTypeCopyClean::ConstSegmentReturnType>
SegmentWrapper;
}
} // namespace
} // namespace
int main() {}
|
@llvm/issue-subscribers-clang-frontend
| | |
| --- | --- |
| Bugzilla Link | [43834](https://llvm.org/bz43834) |
| Resolution | WORKSFORME |
| Resolved on | Oct 29, 2021 07:01 |
| Version | trunk |
| OS | Linux |
| CC | @AaronBallman,@grandinj,@zygoloid |
Extended DescriptionAt least with recent trunk ("clang version 10.0.0 (git@github.com:llvm/llvm-project 93e137f898296d142d056c892b10d40ca3c26f00)"):
|
I reduced the example a little bit more down to:
Interesting things I noticed while doing this:
|
@llvm/issue-subscribers-c-1 Author: None (stbergmann)
| | |
| --- | --- |
| Bugzilla Link | [43834](https://llvm.org/bz43834) |
| Resolution | WORKSFORME |
| Resolved on | Oct 29, 2021 07:01 |
| Version | trunk |
| OS | Linux |
| CC | @AaronBallman,@grandinj,@zygoloid |
Extended DescriptionAt least with recent trunk ("clang version 10.0.0 (git@github.com:llvm/llvm-project 93e137f898296d142d056c892b10d40ca3c26f00)"): > $ cat test.cc > $ clang++ -Xclang -ast-dump -std=c++17 -fsyntax-only test.cc >/dev/null |
Might be related to #68670 |
Extended Description
At least with recent trunk ("clang version 10.0.0 (git@github.com:llvm/llvm-project 93e137f898296d142d056c892b10d40ca3c26f00)"):
The text was updated successfully, but these errors were encountered: