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]

[Bug c++/14033] New: tree check: expected class 't', have 'x' (error_mark) in initialize_inlined_parameters, at tree-inline.c:829


compiling the code

---------------------------------------------------
# 1 "<built-in>"
# 1 "<command line>"
# 1 "//home/buchmann/cvs/eo3s/src/generic/util/lang/bug.cc"
class Tag;

class Block
{
 public:
  Block& select_(Tag tag);
};


Block& Block::select_(Tag tag)
{
 return *this;
}

class Tag
{
 public:
          Tag();
 virtual ~Tag();
 Tag& operator|(Tag);
};

class Parser
{
 Parser();
};


Parser::Parser()
{
 Block b;
 b.select_(
             Tag()
     |Tag()
           );
}

---------------------------------------------------

with


---------------------------------------------------
/home/buchmann/cvs/eo3s/htc/bin/g++ \
        -O3\
	-c -o util/lang/parse-experiments-bug.o\
	//home/buchmann/cvs/eo3s/src/generic/util/lang/bug.cc

---------------------------------------------------

produces the output:

//home/buchmann/cvs/eo3s/src/generic/util/lang/bug.cc: In member function
`Block& Block::select_(Tag)':
//home/buchmann/cvs/eo3s/src/generic/util/lang/bug.cc:11: error: `tag' has
incomplete type
//home/buchmann/cvs/eo3s/src/generic/util/lang/bug.cc:1: error: forward
declaration of `struct Tag'
In file included from //home/buchmann/cvs/eo3s/src/generic/util/lang/bug.cc:32:
//home/buchmann/cvs/eo3s/src/generic/util/lang/bug.cc: In constructor
`Parser::Parser()':
//home/buchmann/cvs/eo3s/src/generic/util/lang/bug.cc:11: internal compiler
error: tree check: expected class 't', have 'x' (error_mark) in
initialize_inlined_parameters, at tree-inline.c:829
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

Compiler version g++ -v

Reading specs from
/home/buchmann/cvs/host/gcc-3.4/bin/../lib/gcc/i686-pc-linux-gnu/3.4.0/specs
Configured with: /home/buchmann/cvs/dist/gcc-3.4-20040114/configure -v
--prefix=/home/buchmann/cvs/host/gcc-3.4/ --enable-languages=c,c++ --with-newlib
Thread model: posix
gcc version 3.4.0 20040114 (experimental)

Best regards 

Hans Buchmann

-- 
           Summary: tree check: expected class 't', have 'x' (error_mark) in
                    initialize_inlined_parameters, at tree-inline.c:829
           Product: gcc
           Version: 3.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: hans dot buchmann at fhso dot ch
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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


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