public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/56217] New: ICE: OpenMP: when combining shared() and a move constructor
@ 2013-02-06  4:44 radford at blackbean dot org
  2013-02-06  9:53 ` [Bug c++/56217] " rguenth at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: radford at blackbean dot org @ 2013-02-06  4:44 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 56217
           Summary: ICE: OpenMP: when combining shared() and a move
                    constructor
    Classification: Unclassified
           Product: gcc
           Version: 4.7.2
            Status: UNCONFIRMED
          Severity: blocker
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: radford@blackbean.org


// ICE with shared(std::unique_ptr<> or equiv) when using: -fopenmp -std=c++11
-O1

template <typename T>
struct ptr {
    T *p;
    ptr() : p() {}
    ptr(ptr &) = delete;
    ptr(ptr &&o) : p(o) {}
    operator T *() { return p; }
};

static ptr<int> f()
{
    ptr<int> pt;
    #pragma omp task shared(pt)
    pt.p = 0;
    return pt;
}

int main(int c, char **v)
{
    #pragma omp parallel
    #pragma omp single    
    f();
}


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

end of thread, other threads:[~2013-02-19 17:38 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-06  4:44 [Bug c++/56217] New: ICE: OpenMP: when combining shared() and a move constructor radford at blackbean dot org
2013-02-06  9:53 ` [Bug c++/56217] " rguenth at gcc dot gnu.org
2013-02-06 10:35 ` jakub at gcc dot gnu.org
2013-02-06 10:44 ` jakub at gcc dot gnu.org
2013-02-06 20:47 ` radford at blackbean dot org
2013-02-08 22:44 ` paolo.carlini at oracle dot com
2013-02-19 17:20 ` jakub at gcc dot gnu.org
2013-02-19 17:38 ` jakub 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).