[Bug c/39661] New: segmentation failed on correctly compiled mixed C and C++ code

pavel dot petrovic at gmail dot com gcc-bugzilla@gcc.gnu.org
Mon Apr 6 12:12:00 GMT 2009


I understand C is low-level, but I'd love the compiler to refuse to compile or
link a mixed C and C++ code that is not mixed correctly.

The story is: parts of the program are implemented in C, parts are in C++. The
functions in C++ are made callable from C using the "__attribute__((stdcall))"
feature, i.e. these are C-type functions implemented in C++. The main program
is in C, and attempts to call these functions, which further call


-- 
           Summary: segmentation failed on correctly compiled mixed C and
                    C++ code
           Product: gcc
           Version: 4.2.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pavel dot petrovic at gmail dot com
 GCC build triplet: i486-linux-gnu
  GCC host triplet: i486-linux-gnu
GCC target triplet: i486-linux-gnu


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



More information about the Gcc-bugs mailing list