http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56014
Johannes Goller changed:
What|Removed |Added
Version|4.8.1 |4.9.0
--- Comment #3 from Johannes Goll
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57979
--- Comment #2 from Johannes Goller ---
Confirmed that the problem exists in the most recent version of GCC 4.9, i.e. a
20130725 snapshot from the master branch.
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: jogojapan at gmail dot com
The following code is accepted and compiled without error by G++:
int main()
{
const float f1 = 0.0;
constexpr float f2 = f1;
return 0;
}
Note that
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56014
--- Comment #2 from Johannes Goller ---
It also exists in 4.8.1.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56014
--- Comment #1 from Johannes Goller ---
I've just confirmed that the problem also exists in GCC 4.9 20130602 snapshot.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56014
Bug #: 56014
Summary: [C++1y] Return type deduction for member functions
does not work when -g is enabled
Classification: Unclassified
Product: gcc
Version: 4.8.0