This is an unofficial snapshot of the ISO/IEC JTC1 SC22 WG21 Core Issues List revision 118f. See http://www.open-std.org/jtc1/sc22/wg21/ for the official list.

2025-11-07


3118. Mangling reflections of annotations is infeasible

Section: 6.7  [basic.link]     Status: ready     Submitter: Dan Katz     Date: 2025-11-06

(From submission #796.)

Consider:

  [[=1]] void f();
  constexpr auto R = annotations_of(^^f)[0];

  template <std::meta::info> struct TCls {};

R could be exported across module boundaries, which would require TCls<R> to be mangled.

Proposed resolution (approved by CWG 2025-11-07):

Change in 6.7 [basic.link] bullet 16.4 as follows: