public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jonathan Wakely <jwakely.gcc@gmail.com>
To: eric <cneric12lin0@gmail.com>
Cc: gcc-help@gcc.gnu.org
Subject: Re: like to know why it is segmentation fault on simple throw-exception program
Date: Wed, 01 Jun 2011 22:16:00 -0000	[thread overview]
Message-ID: <BANLkTikkz0YGGpQmLgcRbU5g40hUdov-fg@mail.gmail.com> (raw)
In-Reply-To: <fca61986-de7e-40b8-80e3-0a40633a3bf1@j13g2000pro.googlegroups.com>

On 1 June 2011 23:01, eric wrote:
> int main()
> {
>    try {
>       push_a_lot();
>    }
>    catch (bound_err& err) {
>      std::cerr << "Error: Bounds exceeded\n";
>      std::cerr << "Reason: " << err.what << '\n';

This should be err.what() not err.what

  parent reply	other threads:[~2011-06-01 22:16 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-01 22:01 eric
2011-06-01 22:15 ` Jonathan Wakely
2011-06-01 22:16 ` Jonathan Wakely [this message]
2011-06-01 23:56   ` Jonathan Wakely
     [not found] ` <94ns1jF12lU13@mid.individual.net>
     [not found]   ` <is6epo$kki$1@dont-email.me>
     [not found]     ` <94ntlmF12lU14@mid.individual.net>
     [not found]       ` <is6fgk$ntt$2@dont-email.me>
2011-06-02  3:07         ` eric
2011-06-02  8:00           ` Jonathan Wakely

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BANLkTikkz0YGGpQmLgcRbU5g40hUdov-fg@mail.gmail.com \
    --to=jwakely.gcc@gmail.com \
    --cc=cneric12lin0@gmail.com \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).