This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/37806] CV-qualifiers on function typedef's are inconsistently accepted depending on typedef scope
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Oct 2008 19:58:48 -0000
- Subject: [Bug c++/37806] CV-qualifiers on function typedef's are inconsistently accepted depending on typedef scope
- References: <bug-37806-16821@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from rguenth at gcc dot gnu dot org 2008-10-11 19:58 -------
EDG accepts the code. With GCC 4.3 and newer we reject the code with
t.C: In function ?int main()?:
t.C:32: error: cannot declare variable ?s? to be of abstract type ?S3?
t.C:21: note: because the following virtual functions are pure within ?S3?:
t.C:16: note: virtual void S2::f(int)
GCC 4.2 has this in addition to the CV error. Of course the reason is the
same.
GCC never accepted the code, so this is not a regression.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Keywords| |rejects-valid
Last reconfirmed|0000-00-00 00:00:00 |2008-10-11 19:58:47
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37806