[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#608029: typeinfo for armel is not weak when templates are explicitly instantiated



Actually, according to the C++ standard, 14.7 clause 5 says:

 - an explicit instantiation definition shall appear at most once in a program

So the example I gave is ill-formed, and armel is probably the one making
a useful and correct optimisation based on that.  C++ also says we aren't
required to issue a diagnostic for this error - so strictly speaking I
guess neither behaviour is a bug in gcc at all, unless upstream want to
minimise the divergence between how code is handled on different arches.

Sorry for the noise, if you don't think this is something upstream should
or would care to know about, then you're welcome to close it.

Ron





Reply to: