Thanks. Figured this out per our chat exchange. It's in my tree. Re-running
tests, and I'll push it in a moment.


On Tue, Oct 26, 2010 at 5:17 PM, Matt Rice <[email protected]> wrote:

> On Tue, Oct 26, 2010 at 5:05 PM, Jonathan S. Shapiro <[email protected]>
> wrote:
> > What is the output?
>
> bitcc: /usr/include/boost/smart_ptr/shared_ptr.hpp:409: T*
> boost::shared_ptr< <template-parameter-1-1> >::operator->() const
> [with T = AST]: Assertion `px != 0' failed.
> Aborted (core dumped)
>
> (backtrace at the bottom)
>
> > What is the *expected* behavior?
>
> something to the effect of this with stdio errors:
> bad_hygene.bitc:47:6: Identifier `lst' used here, Undefined.
> bad_hygene.bitc:47:6: At selection, Identifier  `lst' is not an
> imported interface or a value, but a unresolved.
>
> (that is the output when you uncomment the // as stdio)
>
> note i didn't mean to do the foo.car was testing out importing the
> same interface twice with seperate names and didn't notice it before
> send.
>
>
>
> #0  0x000000345ae326c5 in raise (sig=<value optimized out>) at
> ../nptl/sysdeps/unix/sysv/linux/raise.c:64
> #1  0x000000345ae33ea5 in abort () at abort.c:92
> #2  0x000000345ae2b7b5 in __assert_fail (assertion=0x5a7e94 "px != 0",
> file=<value optimized out>, line=409,
>    function=<value optimized out>) at assert.c:81
> #3  0x0000000000408d65 in boost::shared_ptr<AST>::operator->
> (this=0x7ffffffc62c0)
>    at /usr/include/boost/smart_ptr/shared_ptr.hpp:409
> #4  0x00000000004d4f95 in resolve (errStream=..., ast=...,
> aliasEnv=..., env=..., lamLevel=..., mode=USE_MODE,
>    identType=idc_apply, currLB=..., flags=...) at Symtab.cxx:943
> #5  0x00000000004e6287 in resolve (errStream=..., ast=...,
> aliasEnv=..., env=..., lamLevel=..., mode=USE_MODE,
>    identType=idc_apply, currLB=..., flags=...) at Symtab.cxx:2191
> #6  0x00000000004e7416 in resolve (errStream=..., ast=...,
> aliasEnv=..., env=..., lamLevel=..., mode=USE_MODE,
>    identType=idc_value, currLB=..., flags=...) at Symtab.cxx:2283
> #7  0x00000000004ed853 in resolve (errStream=..., ast=...,
> aliasEnv=..., env=..., lamLevel=..., mode=USE_MODE,
>    identType=idc_value, currLB=..., flags=...) at Symtab.cxx:2652
> #8  0x00000000004e5154 in resolve (errStream=..., ast=...,
> aliasEnv=..., env=..., lamLevel=..., mode=USE_MODE,
>    identType=idc_value, currLB=..., flags=...) at Symtab.cxx:2123
> #9  0x00000000004e558a in resolve (errStream=..., ast=...,
> aliasEnv=..., env=..., lamLevel=..., mode=USE_MODE,
>    identType=idc_value, currLB=..., flags=...) at Symtab.cxx:2136
> #10 0x00000000004e71a0 in resolve (errStream=..., ast=...,
> aliasEnv=..., env=..., lamLevel=..., mode=USE_MODE,
>    identType=idc_value, currLB=..., flags=...) at Symtab.cxx:2266
> #11 0x00000000004d9576 in resolve (errStream=..., ast=...,
> aliasEnv=..., env=..., lamLevel=..., mode=DEF_MODE,
>    identType=idc_type, currLB=..., flags=...) at Symtab.cxx:1223
> ---Type <return> to continue, or q <return> to quit---
> #12 0x00000000004d5f36 in resolve (errStream=..., ast=...,
> aliasEnv=..., env=..., lamLevel=..., mode=USE_MODE,
>    identType=idc_type, currLB=..., flags=...) at Symtab.cxx:1021
> #13 0x00000000004f0141 in UocInfo::DoResolve (this=0xe5bf80,
> errStream=..., init=true, rflags=...)
>    at Symtab.cxx:2866
> #14 0x00000000004f0331 in UocInfo::fe_symresolve (this=0xe5bf80,
> errStream=..., init=true, flags=0)
>    at Symtab.cxx:2888
> #15 0x000000000057be4f in UocInfo::Compile (this=0xe5bf80) at
> UocInfo.cxx:353
> #16 0x000000000057ff6c in transition_parse (lexer=0x7fffffffda70) at
> TransitionParser.y:615
> #17 0x000000000057b607 in UocInfo::CompileFromFile (src=...,
> fromCmdLine=true) at UocInfo.cxx:208
> #18 0x000000000043c106 in main (argc=12, argv=0x7fffffffe0e8) at
> bitcc.cxx:810
> _______________________________________________
> bitc-dev mailing list
> [email protected]
> http://www.coyotos.org/mailman/listinfo/bitc-dev
>
>
_______________________________________________
bitc-dev mailing list
[email protected]
http://www.coyotos.org/mailman/listinfo/bitc-dev

Reply via email to