[aspectc-user] Problem with generated protobuf 3.12.3 CPP files

Olaf Spinczyk os at aspectc.org
Tue Aug 18 14:44:29 CEST 2020


Hi Christian,

this looks like a bug in the phase 1 parser to me. Could one of you
enter a bug report in aspectc.org/bugzilla (component "Weaver")? Then
I'll look into it.

Cheers,
Olaf

Am 18.08.20 um 14:17 schrieb Christian Dietrich:
> Hi!
> 
> We encountered a problem with the most recent version of protobuf and
> AspectC++ (Daily Build). While the generated source code can be
> processed with g++, ac++ dies, even in the absence of aspect headers[1].
> 
>> $ ag++ --version
> ag++ 0.9  built: Jul 23 2020
> 
>> $ ac++ --version                                                            :(
> ac++ 2.2 (Jul 23 2020, clang 4.0.0)
> 
>> $ g++ --version
> g++ (Debian 9.3.0-15) 9.3.0
> Copyright (C) 2019 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
> 
>> $ g++ FailControlMessage.pb.cc -c -o FailControlMessage.pb.o  -std=c++11    :(
> [Everything is OK]
> 
>> $ ag++ FailControlMessage.pb.cc -c -o FailControlMessage.pb.o  -std=c++11
> error: FailControlMessage.pb.cc:120:1: Definition of undeclared scope '_Internal'.
> error: Execution failed: "ac++" --system-config "/tmp/agxx_pcfgbAdux8"  -p. -c "FailControlMessage.pb.cc" -o "/tmp/FailControlMessage.pb.cc_agxx_akWGnw"
> 
> 
> It seems that ac++ stumbles upon a nested class defninition. I attached
> the (generated) header and the source file that provoke this error.
> 
> 
> chris
> 
> [1] For FAIL* users: With the old protobuf 3.0.0 version, everything
>     works just fine.
> 
> 
> _______________________________________________
> aspectc-user mailing list
> aspectc-user at mail.aspectc.org
> https://www.aspectc.org/cgi-bin/mailman/listinfo/aspectc-user
> 


More information about the aspectc-user mailing list