https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100482

            Bug ID: 100482
           Summary: namespaces as int in decltype expression
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hahayes12 at tutanota dot com
  Target Milestone: ---

case:

#include <iostream>
int main() {
    decltype(std) i{1};
    std::cout << i;
}

g++ main.cpp

./a.out
1


as you can see namespaces are usable in decltype expressions and treated as
ints.

Reply via email to