[Bug c++/64842] Implicitly defined constructor isn't constexpr

2015-02-25 Thread simendsjo at simendsjo dot me
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64842 --- Comment #2 from simendsjo at simendsjo dot me --- (In reply to Ville Voutilainen from comment #1) > The constructors for Point are constexpr, but since p2 is not, passing > it as an argument for scale() means that the invocation of

[Bug c++/64842] New: Implicitly defined constructor isn't constexpr

2015-01-28 Thread simendsjo at simendsjo dot me
nt: c++ Assignee: unassigned at gcc dot gnu.org Reporter: simendsjo at simendsjo dot me The following short example is a (somewhat reduced) example from Bjarne Stroustroups book Programming Principles and Practice using C++ 2nd edition first print, section 8.5.9 on page 290.