Created on 2011-08-19.00:00:00 last changed 2 weeks ago
[ Moved to DR at the June, 2026 meeting as paper P2243R0 (Language linkage for templates). ]
Rationale (April, 2013):
CWG felt that this suggested use of alias templates should be considered in a broader context and thus was more appropriate for EWG.
EWG 2022-11-11
extern "C" on a template should be allowed, and should affect only calling convention, but not mangling. This is tracked in github issue cplusplus/papers#1373.
Additional note, April, 2013:
It was suggested that relaxing this restriction for alias templates could provide a way of addressing the long-standing lack of a way of specifying a language linkage for a dependent function type (see issue 13).
[Accepted as a DR at the June, 2026 meeting by adopting paper P2243R0 (Language linkage for templates).]
Currently 13.1 [temp.pre] paragraph 6 forbids any template from having C linkage. Should alias templates be exempt from this prohibition, since they do not have any linkage?
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2026-09-03 09:57:32 | admin | set | messages: + msg8676 |
| 2026-09-03 09:56:51 | admin | set | status: drafting -> dr |
| 2022-11-25 06:28:09 | admin | set | status: extension -> drafting |
| 2013-05-03 00:00:00 | admin | set | messages: + msg4448 |
| 2013-05-03 00:00:00 | admin | set | messages: + msg4447 |
| 2013-05-03 00:00:00 | admin | set | status: open -> extension |
| 2011-08-19 00:00:00 | admin | create | |