public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/61182] New: Forming pointer to qualified function type
@ 2014-05-13 20:03 pdaouadi@aldebaran-robotics.com
  2014-05-13 21:20 ` [Bug c++/61182] " pdaouadi@aldebaran-robotics.com
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: pdaouadi@aldebaran-robotics.com @ 2014-05-13 20:03 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61182

            Bug ID: 61182
           Summary: Forming pointer to qualified function type
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: pdaouadi@aldebaran-robotics.com

Created attachment 32793
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=32793&action=edit
Minimal test

The attached code does not compile on gcc 4.9 but compiles on clang 3.4 and gcc
< 4.9.

Accessor decompose the type with C = "C" and T = "int () const" in the first
call of make. Then same_type creates a T* and removes the pointer to get back
to the same type. GCC 4.9 complains that we cannot create a pointer to a
qualified pointer type even though we never instanciate it.


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

end of thread, other threads:[~2014-05-27 20:13 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-13 20:03 [Bug c++/61182] New: Forming pointer to qualified function type pdaouadi@aldebaran-robotics.com
2014-05-13 21:20 ` [Bug c++/61182] " pdaouadi@aldebaran-robotics.com
2014-05-13 21:29 ` paolo.carlini at oracle dot com
2014-05-14  3:12 ` jason at gcc dot gnu.org
2014-05-14  9:05 ` [Bug c++/61182] [4.9/4.10 Regression] " paolo.carlini at oracle dot com
2014-05-14 10:55 ` redi at gcc dot gnu.org
2014-05-14 11:01 ` daniel.kruegler at googlemail dot com
2014-05-14 13:40 ` pdaouadi@aldebaran-robotics.com
2014-05-14 18:35 ` daniel.kruegler at googlemail dot com
2014-05-26 14:03 ` rguenth at gcc dot gnu.org
2014-05-27 20:13 ` jason 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).