Issue 126917
Summary Inconsist __PRETTY_FUNCTION__ when inline namespace is extended.
Labels new issue
Assignees
Reporter SainoNamkho
    https://godbolt.org/z/Gvf53G7Wx

```c++
#include <print>

inline namespace N {
    namespace M {
        struct X {};
 }
}

inline namespace O {
    namespace P {
        struct Y {};
 }
}

template<class T>
void print_type()
{
    std::println("{}", __PRETTY_FUNCTION__);
}


int main()
{
    print_type<M::X>();
 print_type<P::Y>();
}

namespace M {}
```

Clang prints them differently
```
void print_type() [T = N::M::X]
void print_type() [T = P::Y]
```
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to