http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45923
--- Comment #7 from Benjamin Kosnik <bkoz at gcc dot gnu.org> 2010-11-03 20:48:38 UTC --- Created attachment 22266 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22266 constexpr diagnostics test case #03 more locality, from this under-development chrono snippet. %$bin/H-x86_64-gcc-trunk/bin/g++ -c -std=gnu++0x constexpr-diagnostics-location1.cc constexpr-diagnostics-location1.cc: In function ‘void test1()’: constexpr-diagnostics-location1.cc:720:32: error: ‘constexpr std::chrono::duration<_Rep, _Period>::duration(const std::chrono::duration<_Rep2, _Period2>&) [with _Rep2 = int, _Period2 = std::ratio<3600l>, <template-parameter-2-3> = void, _Rep = long int, _Period = std::ratio<1l>]’ is not a constexpr function But what we really want is added note constexpr-diagnostics-location1.cc:155: note: calls non-constexpr function 'duration_cast'