Title
Is a potentially-evaluated expression in a template definition a “use?”
Status
open
Section
6.3 [basic.def.odr]
Submitter
Johannes Schaub

Created on 2010-10-08.00:00:00 last changed 172 months ago

Messages

Date: 2022-09-25.18:08:42

Consider the following complete program:

    void f();
    template<typename T> void g() { f(); }
    int main() { }

Must f() be defined to make this program well-formed? The current wording of 6.3 [basic.def.odr] does not make any special provision for expressions that appear only in uninstantiated template definitions.

(See also issue 1254.)
History
Date User Action Args
2010-10-08 00:00:00admincreate