public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/52108] New: declval() with incomplete type
@ 2012-02-03 13:52 hidden_peak at mail dot ru
  2012-02-03 14:37 ` [Bug c++/52108] " redi at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: hidden_peak at mail dot ru @ 2012-02-03 13:52 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 52108
           Summary: declval() with incomplete type
    Classification: Unclassified
           Product: gcc
           Version: 4.5.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: hidden_peak@mail.ru


Created attachment 26563
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26563
bug illustration

Wrong report about 'incomplete type'. Situation has relation to type selection
technique.

Key string in the example is

template <class T>
static decltype( declval<typename T::pointer>(), declval<true_type>())
__test_p( int );

First declval (declval<typename T::pointer>) and comma operator required for
problem demonstration. Another condition is usage of x-pair<int,Incomplete>.


For testcase, see attached file. Compilation:

c++ -std=gnu++0x -c test.cc


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

end of thread, other threads:[~2012-04-18 10:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-03 13:52 [Bug c++/52108] New: declval() with incomplete type hidden_peak at mail dot ru
2012-02-03 14:37 ` [Bug c++/52108] " redi at gcc dot gnu.org
2012-04-18  9:10 ` abominable-snowman at yandex dot ru
2012-04-18 10:36 ` 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).