---
name: "std::bad_typeid"
section: "3"
platform: "linux"
package: "gcc"
version: "16.2.1+r23+gd564253eb6c8-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/std::bad_typeid"
---

# std::bad\_typeid(3)

Thrown when a NULL pointer in a typeid expression is used.

## NAME

std::bad\_typeid - Thrown when a NULL pointer in a typeid expression is used.

## SYNOPSIS

\#include \<typeinfo\>

Inherits **std::exception**.

### Public Member Functions

virtual constexpr const char \* **what** () const noexcept\

## Detailed Description

Thrown when a NULL pointer in a typeid expression is used.

## Member Function Documentation

### virtual constexpr const char \* std::bad\_typeid::what () const \[inline\], \[constexpr\], \[virtual\], \[noexcept\]

Returns a C-style character string describing the general cause of the current error.

Reimplemented from **std::exception**.

## Author

Generated automatically by Doxygen for libstdc++ from the source code.
