public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: jcab@JCABs-Rumblings.com To: gcc-gnats@gcc.gnu.org Subject: c++/8442: Wrongful compiler error - file available Date: Sun, 03 Nov 2002 17:56:00 -0000 [thread overview] Message-ID: <20021104015201.15165.qmail@sources.redhat.com> (raw) >Number: 8442 >Category: c++ >Synopsis: Wrongful compiler error - file available >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: rejects-legal >Submitter-Id: net >Arrival-Date: Sun Nov 03 17:56:00 PST 2002 >Closed-Date: >Last-Modified: >Originator: jcab@JCABs-Rumblings.com >Release: MinGW 2.0.0-3 (GCC 3.2) >Organization: >Environment: Windows 2000, MinGW 2.0.0-3, Spirit 1.5.1 (latest CVS) >Description: You can download the file from here: http://home.JCABs-Rumblings.com/ftp/cpp_grammar_error.zip It's a ZIP archive including the preprocessed .ii file, the original C++ source file, and the error spew. You can read the tracking of the bug so far on the MinGW pages in SourceForge: https://sourceforge.net/tracker/?func=detail&atid=102435&aid=632454&group_id=2435 Basically, when compiling the file, using this command: c:\mingw\bin\g++ -O2 -ftemplate-depth-500 -o cpp_grammar.o -c cpp_grammar.ii I get an error in a piece of code that looks like this: --- struct cpp_grammar: grammar<cpp_grammar> { ... template <typename ScannerT> struct definition: cpp_expressions<ScannerT> { ... template < typename ParserT > struct brace_block_functor { ... }; template < typename ParserT > static functor_parser<brace_block_functor<ParserT> > // line 2306 brace_block(ParserT const& parser) { return brace_block_functor<ParserT>(parser); }; ... }; ... }; --- The error (sans the "instantiated from" super-spew) says this: --- cpp_grammar.cpp:2306: type/value mismatch at argument 1 in template parameter list for `template<class FunctorT> struct spirit::functor_parser' cpp_grammar.cpp:2306: expected a type, got `brace_block_functor' cpp_grammar.cpp:2306: confused by earlier errors, bailing out --- This is patently wrong. In fact, I have a CygWin with GCC 3.0.3 that compiles this program perfectly. In tracking this with the MinGW people, they've tried this file with the newest 3.3 compiler, and gotten other errors. >How-To-Repeat: Compile the cpp_grammar.ii file from the ZIP file above, using the following command line: c:\mingw\bin\g++ -O2 -ftemplate-depth-500 -o cpp_grammar.o -c cpp_grammar.ii >Fix: >Release-Note: >Audit-Trail: >Unformatted:
next reply other threads:[~2002-11-04 1:56 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2002-11-03 17:56 jcab [this message] 2002-11-04 7:55 bangerth 2002-11-04 8:56 Wolfgang Bangerth 2002-11-04 8:56 Juan Carlos Arevalo-Baeza 2002-11-05 0:36 Juan Carlos Arevalo-Baeza 2002-11-05 6:46 Reichelt
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=20021104015201.15165.qmail@sources.redhat.com \ --to=jcab@jcabs-rumblings.com \ --cc=gcc-gnats@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: linkBe 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).