public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/48409] New: const qualifier for function type‏
@ 2011-04-02  6:28 zeratul976 at hotmail dot com
  2011-04-02 11:53 ` [Bug c++/48409] " redi at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: zeratul976 at hotmail dot com @ 2011-04-02  6:28 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: const qualifier for function type‏
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: zeratul976@hotmail.com


GCC compiles the following code without error:

template<typename>
struct S;

template <>
struct S<void()>;

template <>
struct S<void() const>;


I believe this code is invalid. Both Comeau C++ and clang give the following
error for it:

error: type qualifier is not allowed on this function
struct S<void() const>;


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

* [Bug c++/48409] const qualifier for function type‏
  2011-04-02  6:28 [Bug c++/48409] New: const qualifier for function type‏ zeratul976 at hotmail dot com
@ 2011-04-02 11:53 ` redi at gcc dot gnu.org
  2011-04-02 12:13 ` redi at gcc dot gnu.org
  2011-04-02 12:26 ` redi at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: redi at gcc dot gnu.org @ 2011-04-02 11:53 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-04-02 11:52:57 UTC ---
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2011/n3236.html#547


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

* [Bug c++/48409] const qualifier for function type‏
  2011-04-02  6:28 [Bug c++/48409] New: const qualifier for function type‏ zeratul976 at hotmail dot com
  2011-04-02 11:53 ` [Bug c++/48409] " redi at gcc dot gnu.org
@ 2011-04-02 12:13 ` redi at gcc dot gnu.org
  2011-04-02 12:26 ` redi at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: redi at gcc dot gnu.org @ 2011-04-02 12:13 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-04-02 12:13:48 UTC ---
this was changed intentionally for PR 37806 and PR 39310


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

* [Bug c++/48409] const qualifier for function type‏
  2011-04-02  6:28 [Bug c++/48409] New: const qualifier for function type‏ zeratul976 at hotmail dot com
  2011-04-02 11:53 ` [Bug c++/48409] " redi at gcc dot gnu.org
  2011-04-02 12:13 ` redi at gcc dot gnu.org
@ 2011-04-02 12:26 ` redi at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: redi at gcc dot gnu.org @ 2011-04-02 12:26 UTC (permalink / raw)
  To: gcc-bugs

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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

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

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-04-02 12:26:50 UTC ---
I've just checked the minutes of the last C++ meeting and a resolution for DR
547 was voted into the FDIS so GCC is correct.


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

end of thread, other threads:[~2011-04-02 12:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-02  6:28 [Bug c++/48409] New: const qualifier for function type‏ zeratul976 at hotmail dot com
2011-04-02 11:53 ` [Bug c++/48409] " redi at gcc dot gnu.org
2011-04-02 12:13 ` redi at gcc dot gnu.org
2011-04-02 12:26 ` redi at gcc dot gnu.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).