public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/52531] New: Compilation fails with polymorphic dummy argument and OpenMP
@ 2012-03-08 14:05 kaladhorn at me dot com
  2012-03-08 15:12 ` [Bug fortran/52531] [OOP] " jakub at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: kaladhorn at me dot com @ 2012-03-08 14:05 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 52531
           Summary: Compilation fails with polymorphic dummy argument and
                    OpenMP
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: kaladhorn@me.com


The following code does not compile:

--
module test_mod
  type, public :: test_type
  end type
contains
  subroutine foo(bar)
    type(test_type) :: bar
!$omp parallel default(none) shared(bar) ! Compiles if one removes
default(none)
    call question(bar)
!$omp end parallel
  end subroutine
  subroutine question(var)
    class(test_type), intent(in) :: var ! Compiles if one replaces class by
type
  end subroutine
end module
--

The error message is:
‘__vtab_test_mod_Test_type’ not specified in enclosing parallel

This was reproduced with gfortran 4.6 (gcc version 4.6.3 (GCC) ) and 4.7 (gcc
version 4.7.0 20120121 (experimental) (GCC) ) on x86_64-unknown-linux-gnu .


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

end of thread, other threads:[~2013-07-24  7:29 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-08 14:05 [Bug fortran/52531] New: Compilation fails with polymorphic dummy argument and OpenMP kaladhorn at me dot com
2012-03-08 15:12 ` [Bug fortran/52531] [OOP] " jakub at gcc dot gnu.org
2012-03-08 19:33 ` kaladhorn at me dot com
2012-06-08 13:01 ` janus at gcc dot gnu.org
2012-06-08 18:46 ` kaladhorn at me dot com
2012-06-09  9:35 ` janus at gcc dot gnu.org
2013-03-17 17:07 ` janus at gcc dot gnu.org
2013-03-17 17:09 ` janus at gcc dot gnu.org
2013-07-24  7:29 ` janus 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).