This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/52809] Template non-dependent static_assert diagnostics may confuse
- From: "paolo.carlini at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 31 Mar 2012 16:55:10 +0000
- Subject: [Bug c++/52809] Template non-dependent static_assert diagnostics may confuse
- Auto-submitted: auto-generated
- References: <bug-52809-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52809
Paolo Carlini <paolo.carlini at oracle dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jason at gcc dot gnu.org
--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-03-31 16:55:10 UTC ---
If we wanted, I think a simple way to add an inform about a static_assert which
can never be fullfilled, would be adding a flag to finish_static_assert in
order to tell in its body whether is being called from the parser or from pt.c.
Something a bit uncommon, afaik, but seems simple.
Jason, what do you think?