This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/78001] [7 Regression] ncurses build error
- From: "trippels at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 16 Oct 2016 17:52:02 +0000
- Subject: [Bug c++/78001] [7 Regression] ncurses build error
- Auto-submitted: auto-generated
- References: <bug-78001-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78001
--- Comment #5 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
Well,
markus@x4 ~ % clang++ -c n.ii
n.ii:6:24: error: member function 'm_fn1' not viable: 'this' argument has type
'const B', but function is not marked const
void m_fn2() const { m_fn1(); }
^~~~~
n.ii:3:8: note: 'm_fn1' declared here
void m_fn1();
^
1 error generated.
is clear immediately.