Skip to content

Incompatible behavior when catching exceptions #522

@hebasto

Description

@hebasto

Here is a minimal reproducible example:

#include <iostream>

int main()
{
    try {
        throw "EX";
    } catch (const char* const& e) {
        std::cout << "e=" << e << '\n';
    }
}

The binary produced by the llvm-mingw 20250924 with LLVM 21.1.2 toolchain prints garbage output, unlike binaries built with other toolchains.

This issue breaks the BOOST_<level>_EXCEPTION macros.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions