This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/51829] decltype() deduces non-const but only in a template
- From: "bugs at sehe dot nl" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 12 Jan 2012 00:30:36 +0000
- Subject: [Bug c++/51829] decltype() deduces non-const but only in a template
- Auto-submitted: auto-generated
- References: <bug-51829-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51829
--- Comment #2 from Seth Heeren <bugs at sehe dot nl> 2012-01-12 00:30:36 UTC ---
To clarify, the valid code that was rejected looks like:
auto expr = boost::spirit::qi::eps(false) | '1';
this might explain the 'strange' breaking up into e1 and e2 for the minimal
testcase.
HTH