# GCC와 Clang, 표준 C++ 미준수: 언어 연결이 타입에 저장되지 않는다

Original title: Neither GCC nor Clang are compliant with standard C++

> Hacker News story 48970039 · language: ko · submitted 2026-07-19
> Web version: https://zeli.app/ko/story/48970039
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 49 · by [birdculture](<https://news.ycombinator.com/user?id=birdculture>) · 💬 58
[original](<https://sebsite.pw/w/20260708-badstdcxx.html>) · [HN discussion](<https://news.ycombinator.com/item?id=48970039>)

## Summary

C++ 표준은 언어 연결(language linkage)이 다른 함수 타입은 서로 다른 타입이라고 명시한다. 그러나 GCC와 Clang은 이 정보를 타입에 저장하지 않아, extern "C" 함수 포인터와 일반 함수 포인터를 구분하지 못한다. 이로 인해 표준을 위반하는 코드가 컴파일되거나, 올바른 코드가 컴파일 실패할 수 있다. 저자는 표준이 구현 정의로 바뀌어야 한다고 주장한다.

## Key quote

> GCC와 Clang은 타입에 언어 연결 정보를 저장하지 않는다. 따라서 언어 연결이 다른 두 함수는 동일한 타입이 될 수 있다.

---

## Cite

- Page: https://zeli.app/ko/story/48970039
- Date: 2026-07-19
- Source: sebsite.pw (https://sebsite.pw/w/20260708-badstdcxx.html)
- Hacker News: https://news.ycombinator.com/item?id=48970039

## Other languages

- en: https://zeli.app/story/48970039 · markdown: https://zeli.app/story/48970039.md
- zh: https://zeli.app/zh/story/48970039 · markdown: https://zeli.app/zh/story/48970039.md
- ja: https://zeli.app/ja/story/48970039 · markdown: https://zeli.app/ja/story/48970039.md
- de: https://zeli.app/de/story/48970039 · markdown: https://zeli.app/de/story/48970039.md
- es: https://zeli.app/es/story/48970039 · markdown: https://zeli.app/es/story/48970039.md
