Bug 39661 - segmentation failed on correctly compiled mixed C and C++ code
Summary: segmentation failed on correctly compiled mixed C and C++ code
Status: RESOLVED DUPLICATE of bug 39662
Alias: None
Product: gcc
Classification: Unclassified
Component: c (show other bugs)
Version: 4.2.4
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-06 12:12 UTC by Pavel Petrovic
Modified: 2009-04-06 12:28 UTC (History)
1 user (show)

See Also:
Host: i486-linux-gnu
Target: i486-linux-gnu
Build: i486-linux-gnu
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pavel Petrovic 2009-04-06 12:12:39 UTC
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
Comment 1 Pavel Petrovic 2009-04-06 12:28:26 UTC

*** This bug has been marked as a duplicate of 39662 ***