This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/48883] ?: ternary operator fails in certain contexts - link error


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48883

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-07-01 16:50:36 UTC ---
Is this related to http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49609#c2 ?

The ternary operator is not one of the contexts listed in 13.4 [over.over] p1
either.  The explicit argument list uniquely identifies the specialization, so
myMax<int> is an lvalue for the function template, but I don't see any 
requirement that it gets instantiated


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]