public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/19245] New: gcc reject cv-qualifiers in function type typedef
@ 2005-01-03 21:16 austern at apple dot com
  2005-01-03 21:43 ` [Bug c++/19245] " pinskia at gcc dot gnu dot org
  0 siblings, 1 reply; 2+ messages in thread
From: austern at apple dot com @ 2005-01-03 21:16 UTC (permalink / raw)
  To: gcc-bugs

For the following code
typedef void f(int) const;
gcc gives the following error message:
foo.cc:1: error: invalid type qualifier for non-member function type
foo.cc:1: error: 'const' and 'volatile' function specifiers on 'f' invalid in type declaration

That error message is incorrect.  As 8.3.5/4 makes it clear, cv-qualifiers are valid in type declarations.  
9.3/9 uses a typedef very much like this one in an example.

-- 
           Summary: gcc reject cv-qualifiers in function type typedef
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: austern at apple dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: powerpc-apple-darwin7.7.0
  GCC host triplet: powerpc-apple-darwin7.7.0
GCC target triplet: powerpc-apple-darwin7.7.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19245


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug c++/19245] gcc reject cv-qualifiers in function type typedef
  2005-01-03 21:16 [Bug c++/19245] New: gcc reject cv-qualifiers in function type typedef austern at apple dot com
@ 2005-01-03 21:43 ` pinskia at gcc dot gnu dot org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-03 21:43 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-01-03 21:42 -------
This is a dup of bug 6628.

*** This bug has been marked as a duplicate of 6628 ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19245


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-01-03 21:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-03 21:16 [Bug c++/19245] New: gcc reject cv-qualifiers in function type typedef austern at apple dot com
2005-01-03 21:43 ` [Bug c++/19245] " pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).