This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[testcase] BTW, c++/5282 is different than c++/5238


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Hello,
Not sure how to add info to a bug report. Hopefully this email is the correct 
way to do it.

I just wanted to note that:
1. 5282 contains a testcase
2. 5282 is completely different than 5238
3. The 5282 testcase works on 3.0.2. It does NOT work on 3.0.3 or 3.1 beta 
with any version of binutils.
4. The include file tuxmodule.h is not needed to make the testcase compile.
Here's the replacement:

extern "C" {
    void TUXAPI_init();
    int TUXAPI_handle_events (void* req);
}

#include "syslog.h"
#include "TestException.h"

int TUXAPI_handle_events (void* req) {
    return 1;
}

void TUXAPI_init() {

    openlog("BugLib", LOG_PID | LOG_CONS | LOG_NDELAY, LOG_DAEMON);

    syslog(LOG_INFO, "TUXAPI_init()");

    try {
        throw TestException("test123");
        return;
    } catch(TestException e) {
        // This never happens
        syslog(LOG_INFO, "Success");
    }

}
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8NmyPP6+Az0OIt2IRAsDMAJsHnW5MqcJ6mqbjjDfKAjEwzAyl4ACfZmvY
32B2L13FdSFVpNFsC9rWo5M=
=AQt1
-----END PGP SIGNATURE-----


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]